/* ==========================================================================
   Employer Registration Page Styles - EXTRACTED FROM INLINE
   Light professional theme with purple accents
   ========================================================================== */

/* Override main content padding */
.main-content {
    padding: 0 !important;
    min-height: calc(100vh - 160px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.register-hero-section {
    min-height: calc(100vh - 160px);
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: var(--space-12) 0;
}

.register-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234f46e5" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

/* Subtle decorative circles */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.bg-decoration-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-500);
    top: -100px;
    right: -100px;
}

.bg-decoration-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-600);
    bottom: -50px;
    left: -50px;
}

/* ==========================================================================
   CONTAINER & CARD
   ========================================================================== */
.register-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 var(--space-4);
}

/* Clean White Card */
.register-glass-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.08);
    overflow: hidden;
    animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   CARD HEADER
   ========================================================================== */
.register-glass-header {
    padding: var(--space-8) var(--space-8) var(--space-6);
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(124, 58, 237, 0.02) 100%);
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.register-logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.register-glass-title {
    font-family: var(--font-primary);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--secondary-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.025em;
}

.register-glass-subtitle {
    color: var(--secondary-600);
    font-size: 0.9375rem;
    font-weight: 400;
    margin: 0;
}

/* ==========================================================================
   CARD BODY
   ========================================================================== */
.register-glass-body {
    padding: var(--space-8);
}

/* ==========================================================================
   EMPLOYER NOTICE
   ========================================================================== */
.employer-notice {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(124, 58, 237, 0.03) 100%);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
}

.employer-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
}

.employer-notice-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.employer-icon {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.employer-text h6 {
    color: var(--secondary-800);
    font-weight: 600;
    margin-bottom: var(--space-2);
    font-size: 0.9375rem;
}

.employer-text small {
    color: var(--secondary-600);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */
.form-group-register {
    margin-bottom: var(--space-5);
}

.form-label-register {
    font-weight: 600;
    color: var(--secondary-700);
    margin-bottom: var(--space-2);
    display: block;
    font-size: 0.875rem;
}

.form-control-register {
    border: 2px solid var(--secondary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    width: 100%;
    outline: none;
    font-family: inherit;
    color: var(--text-primary);
}

.form-control-register::placeholder {
    color: var(--neutral-400);
}

.form-control-register:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.form-control-register.is-valid {
    border-color: #34d399;
    background-image: none;
}

.form-control-register.is-invalid {
    border-color: #f87171;
    background-image: none;
}

/* ==========================================================================
   INPUT GROUP WITH VALIDATION ICONS
   ========================================================================== */
.input-group-register {
    display: flex;
    position: relative;
}

.input-group-register .form-control-register {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.validation-icon {
    background: var(--secondary-50);
    border: 2px solid var(--secondary-200);
    border-left: none;
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    min-width: 50px;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-control-register:focus + .validation-icon {
    border-color: var(--primary-500);
    background: rgba(79, 70, 229, 0.04);
}

.form-control-register.is-valid + .validation-icon {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.04);
}

.form-control-register.is-invalid + .validation-icon {
    border-color: #f87171;
    background: rgba(239, 68, 68, 0.04);
}

.validation-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   FORM ROW
   ========================================================================== */
.form-row-register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* ==========================================================================
   VALIDATION MESSAGES
   ========================================================================== */
.form-error-register {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-error-register i {
    margin-right: var(--space-2);
    color: #ef4444;
    font-size: 0.875rem;
}

.form-help-register {
    font-size: 0.8125rem;
    color: var(--secondary-500);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
}

.form-help-register i {
    margin-right: var(--space-1);
    opacity: 0.7;
    font-size: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-register {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-register {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    margin-bottom: var(--space-6);
}

.btn-primary-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    color: white;
}

.btn-primary-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-register {
    background: white;
    color: var(--secondary-700);
    border: 2px solid var(--secondary-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline-register:hover {
    background: var(--secondary-50);
    border-color: var(--secondary-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--secondary-800);
}

/* Loading State */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   DIVIDER & LINKS
   ========================================================================== */
.register-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--space-6) 0;
    color: var(--secondary-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.register-divider::before,
.register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--secondary-200);
}

.register-divider:not(:empty)::before {
    margin-right: var(--space-4);
}

.register-divider:not(:empty)::after {
    margin-left: var(--space-4);
}

.register-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--secondary-600);
    margin-top: var(--space-4);
}

.register-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--primary-700);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .register-hero-section {
        padding: var(--space-8) 0;
    }

    .register-glass-header {
        padding: var(--space-6) var(--space-6) var(--space-5);
    }

    .register-glass-body {
        padding: var(--space-6);
    }

    .register-logo-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .register-glass-title {
        font-size: 1.5rem;
    }

    .form-row-register {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 0 var(--space-3);
    }

    .register-glass-card {
        border-radius: var(--radius-xl);
    }
}

/* ═════════════════════════════════════════════════════════════════════
   CRITICAL: Global form input protection (preventive measure)
   ═════════════════════════════════════════════════════════════════════ */
input,
textarea,
select,
button,
.form-control-register,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
    color: var(--text-primary, #1e293b) !important;
    -webkit-text-fill-color: var(--text-primary, #1e293b) !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--secondary-400, #94a3b8) !important;
    -webkit-text-fill-color: var(--secondary-400, #94a3b8) !important;
    opacity: 0.7 !important;
}