/* Virtual Office Authentication Styles (Reworq Design) */

/* Background Wrapper */
.vo-auth-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://reworq.eu/wp-content/uploads/2020/05/austin-distel-wawEfYdpkag-unsplash-scaled.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.vo-auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
}

/* Page Layout for Shortcodes */
.vo-auth-page-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
}

/* Card Style */
.vo-auth-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    margin: 20px;
    box-sizing: border-box;
}

/* Typography */
.vo-auth-logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
    color: #111827;
    text-transform: uppercase;
}

.vo-auth-logo span {
    color: #2563EB;
}

.vo-auth-subtitle {
    color: #6B7280;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 32px;
}

.vo-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    text-align: left;
}

/* Form Elements */
.vo-auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.vo-auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vo-auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    width: 20px;
    height: 20px;
    z-index: 2;
    pointer-events: none;
    /* Ensure icon stays on top */
}

/* SVG Icon styles */
.vo-auth-input-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}


.vo-auth-input {
    width: 100%;
    padding: 12px 16px 12px 48px !important;
    /* Space for icon */
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    transition: all 0.2s;
    outline: none;
    background-color: #F9FAFB;
    box-sizing: border-box;
}

.vo-auth-input:focus {
    border-color: #2563EB;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.vo-auth-input::placeholder {
    color: #9CA3AF;
}

.vo-auth-btn {
    width: 100% !important;
    background-color: #2563EB !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 14px !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-size: 16px !important;
    transition: background 0.2s;
    margin-bottom: 24px;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none !important;
}

.vo-auth-btn:hover {
    background-color: #1D4ED8 !important;
    transform: translateY(-1px);
    color: white !important;
}

/* Utility / Links */
.vo-auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.vo-auth-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4B5563;
    cursor: pointer;
}

.vo-auth-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

.vo-auth-link:hover {
    text-decoration: underline;
}

.vo-auth-footer {
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
    font-size: 14px;
    color: #6B7280;
}

.vo-auth-register-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.vo-auth-register-link:hover {
    color: #2563EB;
}

/* Auth divider ("ALI" separator between Google and email form) */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9CA3AF;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* Google Button Hover */
.vo-google-btn:hover {
    background-color: #F3F4F6 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-color: #d1d5db !important;
}

/* Messages */
.vo-auth-error {
    background-color: #FEF2F2;
    color: #991B1B;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #FECACA;
    text-align: left;
}

.vo-auth-success {
    background-color: #F0FDF4;
    color: #166534;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #BBF7D0;
    text-align: left;
}

/* ------------------------------------------------------------
   WordPress Login Page Overrides (wp-login.php)
   ------------------------------------------------------------ */
body.login {
    background-image: url('https://reworq.eu/wp-content/uploads/2020/05/austin-distel-wawEfYdpkag-unsplash-scaled.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: auto;
    padding: 24px;
    overflow-y: auto;
}

/* Gradient Overlay for Login Page */
body.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    z-index: -1;
}

/* Login Form Container */
body.login #login {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    /* Reset WP margins */
    margin: 0 !important;
    box-sizing: border-box;
}

/* Logo */
body.login h1 a {
    /* Keep the logo image, hide the textual fallback to avoid duplicate REWORQ text */
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    display: block;
}

body.login h1 a::after {
    content: none !important;
}

/* Inputs */
body.login form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.login label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    color: #111827;
    background-color: #F9FAFB;
    box-shadow: none !important;
    margin-bottom: 20px;
}

body.login .input:focus {
    border-color: #2563EB;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

/* Button */
/* Button */
body.login .button-primary,
body.login input[type="submit"]#wp-submit,
body.login button#wp-submit {
    width: 100%;
    background-color: #2563EB !important;
    background-image: none !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    text-shadow: none !important;
    margin-top: 20px !important;
    height: auto !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    cursor: pointer !important;
}

body.login .button-primary:hover,
body.login input[type="submit"]#wp-submit:hover,
body.login button#wp-submit:hover {
    background-color: #1D4ED8 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Ensure the paragraph containing the submit button is also visible and laid out correctly */
body.login .submit {
    margin-top: 20px !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

/* Links (Lost Password / Register) */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 0 !important;
    margin: 24px 0 0 0 !important;
}

body.login #nav a,
body.login #backtoblog a {
    color: #6B7280 !important;
    font-size: 14px !important;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #2563EB !important;
}

/* Hide the language switcher */
.language-switcher {
    display: none;
}