/* Auth Layout CSS - Modern Marketing Design */

.auth-layout {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 64, 87, 0.92) 0%, rgba(61, 90, 128, 0.95) 50%, rgba(74, 93, 122, 0.98) 100%);
    z-index: 0;
}

.auth-layout::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 184, 150, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    margin: 2rem auto;
}

.auth-container.wide {
    max-width: 900px;
}

.auth-box {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    margin-bottom: 2rem;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem 1rem 0 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-header .logo:hover {
    opacity: 0.8;
}

.auth-header .logo img {
    height: 120px;
    width: auto;
}

.auth-badge {
    display: inline-block;
    background: rgba(61, 90, 128, 0.1);
    color: var(--primary-color);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--light-bg);
    border-radius: 0.75rem;
    padding: 0.5rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.auth-tab i {
    font-size: 1rem;
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
    margin-top: 1.5rem;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.938rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.938rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Two Column Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid .form-group {
    margin-bottom: 1rem;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

/* Password Toggle Alignment Fix */
.auth-form .input-with-icon {
    position: relative;
}

.auth-form .input-with-icon input,
.auth-form .input-with-icon select {
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
}

.auth-form .toggle-password {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    color: var(--text-secondary) !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
}

.auth-form .toggle-password:hover {
    color: var(--primary-color) !important;
}

.auth-form .toggle-password i {
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-layout {
        padding: 1rem;
        min-height: 100vh;
        align-items: flex-start;
    }
    
    .auth-container {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .auth-container.wide {
        max-width: 100%;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .auth-header {
        margin-bottom: 1.5rem;
    }
    
    .auth-header .logo {
        margin-bottom: 1rem;
    }
    
    .auth-header .logo img {
        height: 90px;
    }
    
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .auth-tabs {
        margin-bottom: 1.5rem;
        padding: 0.375rem;
    }
    
    .auth-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .auth-tab i {
        font-size: 0.875rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid .form-group.full-width {
        grid-column: 1;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

