body.auth-route * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-route {
    font-family: var(--font-family-base, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.auth-route .auth-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 600px;
}

body.auth-route .auth-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

body.auth-route .auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

body.auth-route .brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

body.auth-route .logo-img {
    max-width: 100%;
    width: 320px;
    height: auto;
    margin-bottom: 30px;
}

body.auth-route .brand-tagline {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

body.auth-route .brand-features {
    list-style: none;
    text-align: left;
    margin-top: 30px;
}

body.auth-route .brand-features li {
    padding: 12px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

body.auth-route .brand-features li i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--color-success-light);
}

body.auth-route .auth-form-container {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.auth-route .auth-header {
    margin-bottom: 40px;
}

body.auth-route .auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

body.auth-route .auth-header p {
    color: #6b7280;
    font-size: 16px;
}

body.auth-route .progress-steps {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0;
}

body.auth-route .step {
    display: flex;
    align-items: center;
    color: white !important;
    font-size: 12px;
    font-weight: 500;
}

body.auth-route .step span {
    color: white !important;
}

body.auth-route .step.completed {
    color: var(--color-success-light) !important;
}

body.auth-route .step.completed span {
    color: var(--color-success-light) !important;
}

body.auth-route .step.active {
    color: white !important;
}

body.auth-route .step.active span {
    color: white !important;
}

body.auth-route .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
}

body.auth-route .step.completed .step-number {
    background: var(--color-success-light);
    color: white;
}

body.auth-route .step.active .step-number {
    background: white;
    color: var(--color-primary);
}

body.auth-route .step-connector {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 16px;
}

body.auth-route .step.completed + .step-connector {
    background: var(--color-success-light);
}

body.auth-route .form-group {
    margin-bottom: 24px;
}

body.auth-route .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

body.auth-route .form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f9fafb;
}

body.auth-route .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

body.auth-route .password-wrapper {
    position: relative;
}

body.auth-route .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
}

body.auth-route .password-toggle:hover {
    color: #4b5563;
}

body.auth-route .password-strength {
    margin-top: 8px;
    font-size: 12px;
}

body.auth-route .strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 4px 0;
    overflow: hidden;
}

body.auth-route .strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

body.auth-route .strength-weak .strength-fill { background: #dc2626; width: 25%; }
body.auth-route .strength-fair .strength-fill { background: #f59e0b; width: 50%; }
body.auth-route .strength-good .strength-fill { background: #10b981; width: 75%; }
body.auth-route .strength-strong .strength-fill { background: #059669; width: 100%; }

body.auth-route .strength-text {
    color: #6b7280;
}

body.auth-route .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
}

body.auth-route .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

body.auth-route .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

body.auth-route .remember-me label {
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

body.auth-route .forgot-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

body.auth-route .forgot-link:hover {
    text-decoration: underline;
}

body.auth-route .btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

body.auth-route .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

body.auth-route .btn-primary:active {
    transform: translateY(0);
}

body.auth-route .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.auth-route .btn-outline {
    width: 100%;
    padding: 12px 24px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

body.auth-route .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

body.auth-route .divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: #9ca3af;
    font-size: 14px;
}

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

body.auth-route .divider span {
    padding: 0 16px;
}

body.auth-route .signup-link {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 14px;
}

body.auth-route .signup-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

body.auth-route .signup-link a:hover {
    text-decoration: underline;
}

body.auth-route .alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

body.auth-route .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

body.auth-route .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

body.auth-route .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

body.auth-route .alert i {
    margin-top: 2px;
}

body.auth-route .info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

body.auth-route .info-box p {
    color: #0369a1;
    font-size: 14px;
    margin: 0;
}

body.auth-route .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    body.auth-route {
        padding: 0;
        background: white;
    }

    body.auth-route .auth-wrapper {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    body.auth-route .auth-brand {
        padding: 40px 30px;
        min-height: auto;
    }

    body.auth-route .logo-img {
        width: 240px;
        margin-bottom: 20px;
    }

    body.auth-route .brand-tagline {
        font-size: 16px;
        margin-bottom: 20px;
    }

    body.auth-route .brand-features {
        display: none;
    }

    body.auth-route .auth-form-container {
        padding: 40px 30px;
    }

    body.auth-route .auth-header h1 {
        font-size: 26px;
    }

    body.auth-route .auth-header p {
        font-size: 14px;
    }

    body.auth-route .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body.auth-route .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.auth-route .step-connector {
        width: 30px;
        margin: 0 12px;
    }

    body.auth-route .progress-steps {
        margin-top: 15px;
    }

    body.auth-route .step {
        font-size: 11px;
    }

    body.auth-route .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    body.auth-route .auth-brand {
        padding: 30px 20px;
    }

    body.auth-route .logo-img {
        width: 200px;
    }

    body.auth-route .auth-form-container {
        padding: 30px 20px;
    }

    body.auth-route .auth-header h1 {
        font-size: 24px;
    }

    body.auth-route .btn-primary,
    body.auth-route .btn-outline {
        padding: 12px 20px;
        font-size: 15px;
    }

    body.auth-route .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Registration Step 2 specific styles */
body.auth-route .form-hint {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 400;
}

body.auth-route .search-container {
    position: relative;
    margin-bottom: 28px;
}

body.auth-route .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

body.auth-route .search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

body.auth-route .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

body.auth-route .manual-entry {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

body.auth-route .manual-entry-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

body.auth-route .manual-entry-header::before,
body.auth-route .manual-entry-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

body.auth-route .manual-entry-header span {
    padding: 0 16px;
}

body.auth-route .selected-company {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 28px;
}

body.auth-route .back-button {
    width: 100%;
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

body.auth-route .back-button:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

