/* Ultra-Modern Professional Authentication Design - Enhanced Version */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global fixes for cropping issues */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.bg-login {
    min-height: 100vh;
    overflow: visible;
    margin: 0;
    padding: 0;
}

/* Custom Properties for Enhanced Theming */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --soft-primary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --warm-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --bg-primary: rgba(255, 255, 255, 0.98);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 24px 64px rgba(102, 126, 234, 0.15);
    --border-radius: 24px;
    --border-radius-small: 16px;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
    --blur-effect: blur(24px);
    --border-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced Container with Softer Background */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    position: relative;
    overflow: visible;
    padding: 24px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    margin: 0;
    box-sizing: border-box;
}

/* Fix for wrapper and section classes */
.wrapper {
    min-height: 100vh;
    overflow: visible;
}

.section-authentication-signin {
    min-height: 100vh;
    height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Enhanced Animated Background */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.auth-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--glass-gradient);
    animation: authFloat 30s ease-in-out infinite;
    pointer-events: none;
    backdrop-filter: var(--blur-effect);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-color);
    opacity: 0.8;
}

.auth-shape-1 {
    width: 160px;
    height: 160px;
    top: 10%;
    left: 6%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 56px rgba(102, 126, 234, 0.2);
}

.auth-shape-2 {
    width: 220px;
    height: 220px;
    top: 60%;
    right: 6%;
    animation-delay: 8s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 20px 64px rgba(118, 75, 162, 0.2);
}

.auth-shape-3 {
    width: 140px;
    height: 140px;
    bottom: 12%;
    left: 20%;
    animation-delay: 16s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 48px rgba(102, 126, 234, 0.15);
}

.auth-shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 18px 52px rgba(118, 75, 162, 0.18);
}

.auth-shape-5 {
    width: 120px;
    height: 120px;
    bottom: 35%;
    right: 15%;
    animation-delay: 12s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.12);
}

@keyframes authFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.85;
    }
}

/* Enhanced Content Layout */
.auth-content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 1300px;
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 600px;
    max-height: 900px;
    height: 900px;
}

/* Enhanced Left Panel */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    padding: 40px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.auth-left-panel::-webkit-scrollbar {
    width: 6px;
}

.auth-left-panel::-webkit-scrollbar-track {
    background: transparent;
}

.auth-left-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.auth-left-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Enhanced Right Panel */
.auth-right-panel {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    height: 100%;
}

/* Enhanced Card Design */
.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-small);
    padding: 35px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition-smooth);
    max-height: 100%;
    height: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-card::-webkit-scrollbar-track {
    background: transparent;
}

.auth-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.auth-card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--border-radius-small);
    pointer-events: none;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo-section {
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: logoPulse 3s ease-in-out infinite;
}

.auth-logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: authShine 2s ease-in-out infinite;
}

.auth-logo-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    transform: translateX(-100%);
    transition: var(--transition-fast);
}

.auth-logo-icon:hover::after {
    transform: translateX(100%);
}

.auth-logo-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
}

.auth-logo-icon i {
    font-size: 36px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-fast);
}

.auth-logo-icon:hover i {
    transform: scale(1.1);
}

.auth-brand-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-fast);
    letter-spacing: -0.5px;
}

.auth-brand-title:hover {
    transform: scale(1.02);
}

.auth-brand-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.auth-brand-subtitle:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Enhanced Welcome Section */
.auth-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.auth-welcome h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    transition: var(--transition-fast);
    letter-spacing: -0.3px;
}

.auth-welcome h2:hover {
    color: #667eea;
}

.auth-welcome p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.auth-welcome p:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Enhanced Form Groups */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-small);
    border: 2px solid transparent;
    transition: var(--transition-fast);
    backdrop-filter: var(--blur-effect);
}

.auth-input-wrapper:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: var(--transition-fast);
    z-index: 2;
}

/* Enhanced Form Inputs */
.auth-form-input {
    width: 100%;
    padding: 16px 18px 16px 56px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-small);
    transition: var(--transition-fast);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.auth-form-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
    transition: var(--transition-fast);
    opacity: 0.8 !important;
}

/* Browser-specific placeholder overrides for maximum compatibility */
.auth-form-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.8 !important;
}

.auth-form-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.8 !important;
}

.auth-form-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.8 !important;
}

.auth-form-input:-moz-placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.8 !important;
}

.auth-form-input:hover {
    /*background: rgba(255, 255, 255, 0.95);*/
}

.auth-form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form-input:focus + .auth-input-icon {
    color: #667eea;
}

.auth-form-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9 !important;
}

/* Browser-specific focus placeholder overrides */
.auth-form-input:focus::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9 !important;
}

.auth-form-input:focus::-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9 !important;
}

.auth-form-input:focus:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9 !important;
}

.auth-form-input:focus:-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9 !important;
}

/* Enhanced Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
    z-index: 2;
}

.auth-password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Form Options */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-remember-me:hover {
    color: var(--text-primary);
}

.auth-remember-me input[type="checkbox"] {
    display: none;
}

.auth-checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition-fast);
    backdrop-filter: var(--blur-effect);
}

.auth-remember-me:hover .auth-checkmark {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.auth-remember-me input[type="checkbox"]:checked + .auth-checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

.auth-remember-me input[type="checkbox"]:checked + .auth-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.auth-forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.auth-forgot-password::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.auth-forgot-password:hover::before {
    width: 100%;
}

.auth-forgot-password:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

/* Enhanced Button */
.auth-btn {
    width: 100%;
    padding: 16px 28px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-light);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

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

/* Enhanced Prominent Signup Section */
.auth-signup-prominent {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    padding-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-signup-divider {
    position: relative;
    margin-bottom: 16px;
}

.auth-signup-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-divider-text {
    background: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.auth-signup-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-signup-question {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.auth-signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
}

.auth-signup-btn:hover::before {
    left: 100%;
}

.auth-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.auth-signup-btn i {
    font-size: 18px;
    transition: var(--transition-fast);
}

.auth-signup-btn:hover i {
    transform: scale(1.1);
}

/* Legacy Signup Link (for backward compatibility) */
.auth-signup-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-signup-link p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition-fast);
}

.auth-signup-link p:hover {
    color: var(--text-primary);
}

.auth-signup-text {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.auth-signup-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.auth-signup-text:hover::before {
    width: 100%;
}

.auth-signup-text:hover {
    color: #764ba2;
    transform: translateY(-1px);
}

/* Enhanced Left Content */
.auth-left-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Left Panel Signup Section */
.auth-left-signup {
    margin-top: 40px;
    text-align: center;
}

.auth-left-signup-divider {
    position: relative;
    margin-bottom: 20px;
}

.auth-left-signup-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-left-divider-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-left-signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-left-signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
}

.auth-left-signup-btn:hover::before {
    left: 100%;
}

.auth-left-signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

.auth-left-signup-btn i {
    font-size: 20px;
    transition: var(--transition-fast);
}

.auth-left-signup-btn:hover i {
    transform: scale(1.1);
}

.auth-left-content h1:hover {
    transform: scale(1.02);
    color: #f7fafc;
}

.auth-left-content p {
    font-size: 16px;
    color: #e2e8f0;
    margin: 0 0 24px;
    line-height: 1.6;
    transition: var(--transition-fast);
    opacity: 0.95;
}

.auth-left-content p:hover {
    opacity: 1;
    color: #f7fafc;
}

/* Enhanced Features List */
.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-small);
    backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-fast);
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-features-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-features-list li:hover::before {
    transform: scale(1.2);
    background: #764ba2;
}

.auth-features-list li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(8px);
    color: #f7fafc;
}

.auth-features-list li i {
    margin-right: 12px;
    font-size: 20px;
    color: #a8edea;
    transition: var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-features-list li:hover i {
    color: #fed6e3;
    transform: scale(1.1);
}

/* Enhanced Animations */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes authShine {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .auth-content {
        max-width: 1000px;
        margin: 0 20px;
    }

    .auth-left-panel {
        padding: 50px 30px;
    }

    .auth-left-content h1 {
        font-size: 32px;
        color: #ffffff;
    }

    .auth-left-content p {
        font-size: 16px;
        color: #e2e8f0;
    }

    .auth-card {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
        min-height: 100vh;
    }

    .auth-content {
        flex-direction: column;
        min-height: auto;
        margin: 0;
        max-height: 900px;
        height: 900px;
    }

    .auth-card {
        padding: 30px 20px;
        margin: 0;
        border-radius: var(--border-radius-small);
        max-width: 100%;
    }

    .auth-brand-title {
        font-size: 28px;
    }

    .auth-welcome h2 {
        font-size: 24px;
    }

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

    .auth-left-content h1 {
        font-size: 28px;
        color: #ffffff;
    }

    .auth-left-content p {
        font-size: 16px;
        color: #e2e8f0;
    }

    .auth-shape {
        display: none;
    }

    .auth-left-panel {
        padding: 40px 24px;
        order: 2;
    }

    .auth-right-panel {
        padding: 40px 24px;
        order: 1;
    }

    .section-authentication-signin {
        min-height: 100vh;
        height: auto;
        /*padding: 20px 0;*/
    }
}

@media (max-height: 700px) {
    .auth-card {
        padding: 28px 24px;
    }

    .auth-logo-icon {
        width: 60px;
        height: 60px;
    }

    .auth-logo-icon i {
        font-size: 28px;
    }

    .auth-brand-title {
        font-size: 24px;
    }

    .auth-welcome h2 {
        font-size: 20px;
    }

    .auth-welcome p {
        font-size: 14px;
    }

    .auth-form-group {
        margin-bottom: 20px;
    }

    .auth-form-input {
        padding: 16px 18px 16px 48px;
    }

    .auth-btn {
        padding: 16px 28px;
    }

    .auth-left-content h1 {
        font-size: 28px;
        color: #ffffff;
    }

    .auth-left-content p {
        font-size: 16px;
        color: #e2e8f0;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 12px;
        min-height: 100vh;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .auth-brand-title {
        font-size: 24px;
    }

    .auth-welcome h2 {
        font-size: 20px;
    }

    .auth-form-input {
        padding: 14px 16px 14px 44px;
        font-size: 15px;
    }

    .auth-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .auth-logo-icon {
        width: 56px;
        height: 56px;
    }

    .auth-logo-icon i {
        font-size: 24px;
    }

    .section-authentication-signin {
        min-height: 100vh;
        height: auto;
        /*padding: 16px 0;*/
    }
}

/* Enhanced Toast Notifications */
.auth-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.auth-toast {
    background: var(--bg-primary);
    border-radius: var(--border-radius-small);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid #667eea;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.auth-toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.auth-toast-success {
    border-left-color: var(--success-color);
}

.auth-toast-success i {
    color: var(--success-color);
}

.auth-toast-error {
    border-left-color: var(--danger-color);
}

.auth-toast-error i {
    color: var(--danger-color);
}

.auth-toast-warning {
    border-left-color: var(--warning-color);
}

.auth-toast-warning i {
    color: var(--warning-color);
}

.auth-toast-info {
    border-left-color: var(--info-color);
}

.auth-toast-info i {
    color: var(--info-color);
}

.auth-toast-content {
    display: flex;
    align-items: center;
}

.auth-toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-toast-message {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

.auth-toast-close:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .auth-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .auth-toast {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Enhanced Large Screen Support */
@media (min-width: 1201px) {
    .auth-left-panel {
        padding: 80px 60px;
    }

    .auth-right-panel {
        padding: 80px 60px;
    }

    .auth-card {
        padding: 48px;
    }

    .auth-left-content h1 {
        font-size: 42px;
    }

    .auth-left-content p {
        font-size: 20px;
    }
}

/* Enhanced Button Loading States */
.auth-btn.loading {
    pointer-events: none;
    background: var(--secondary-gradient);
    animation: buttonGlow 2s ease-in-out infinite;
}

.auth-bx-spin {
    animation: authSpin 1.2s linear infinite;
}

@keyframes authSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes buttonGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: var(--shadow-light);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: var(--shadow-medium);
    }
}

/* Enhanced Focus States for Accessibility */
.auth-form-input:focus,
.auth-btn:focus,
.auth-password-toggle:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* Enhanced Hover Effects */
.auth-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
}

.auth-logo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.auth-features-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(12px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Enhanced Input Focus Effects */
.auth-input-wrapper:focus-within {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Button Hover Effects */
.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.auth-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Link Hover Effects */
.auth-signup-text:hover,
.auth-forgot-password:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Enhanced Checkbox Hover Effects */
.auth-remember-me:hover .auth-checkmark {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.1);
}

/* Enhanced Welcome Text Effects */
.auth-welcome h2:hover {
    transform: scale(1.02);
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.auth-welcome p:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* Enhanced Brand Title Effects */
.auth-brand-title:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Enhanced Left Content Effects */
.auth-left-content h1:hover {
    transform: scale(1.03);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-left-content p:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Enhanced Shape Animations */
.auth-shape:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-card:hover {
        transform: translateY(-2px);
    }

    .auth-btn:hover {
        transform: translateY(-1px);
    }

    .auth-features-list li:hover {
        transform: translateX(6px) scale(1.01);
    }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-muted: #a0aec0;
        --bg-primary: rgba(26, 32, 44, 0.95);
        --bg-secondary: rgba(45, 55, 72, 0.9);
    }

    .auth-card {
        background: var(--bg-primary);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .auth-form-input {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: #4a5568;
    }

    .auth-form-input:focus {
        border-color: #667eea;
        background: rgba(45, 55, 72, 1);
    }

    .auth-input-wrapper {
        background: rgba(45, 55, 72, 0.8);
    }

    .auth-input-wrapper:hover {
        background: rgba(45, 55, 72, 0.9);
    }
}

/* Enhanced Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .auth-shape,
    .auth-card,
    .auth-btn,
    .auth-logo-icon,
    .auth-features-list li,
    .auth-form-input,
    .auth-input-wrapper {
        animation: none;
        transition: none;
    }

    .auth-card:hover,
    .auth-btn:hover,
    .auth-logo-icon:hover,
    .auth-features-list li:hover {
        transform: none;
    }
}

/* Enhanced Loading States */
.auth-btn.loading .auth-btn-text {
    opacity: 0;
}

.auth-btn.loading .auth-btn-loader {
    opacity: 1;
}

.auth-btn-loader {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Enhanced Toast Animations */
.auth-toast {
    animation: slideInRight 0.3s ease-out;
}

.auth-toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Enhanced Form Validation Styles */
.auth-form-input:invalid:not(:placeholder-shown) {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.auth-form-input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

/* Enhanced Success States */
.auth-form-input:valid:not(:placeholder-shown) + .auth-input-icon {
    color: var(--success-color);
}

/* Enhanced Error States */
.auth-form-input:invalid:not(:placeholder-shown) + .auth-input-icon {
    color: var(--danger-color);
}

/* Enhanced Password Strength Indicator */
.auth-password-toggle.weak {
    color: var(--danger-color);
}

.auth-password-toggle.medium {
    color: var(--warning-color);
}

.auth-password-toggle.strong {
    color: var(--success-color);
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced High Contrast Mode */
@media (prefers-contrast: high) {
    .auth-card {
        border: 2px solid #000;
    }

    .auth-form-input {
        border: 2px solid #000;
    }

    .auth-btn {
        border: 2px solid #000;
    }
}

/* Enhanced Print Styles */
@media print {
    .auth-background,
    .auth-shapes,
    .auth-left-panel {
        display: none;
    }

    .auth-content {
        box-shadow: none;
        border: 1px solid #000;
    }

    .auth-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* CRITICAL: Force white placeholders for auth forms - highest priority */
.auth-container .auth-form-input::placeholder,
.auth-container .auth-form-input::-webkit-input-placeholder,
.auth-container .auth-form-input::-moz-placeholder,
.auth-container .auth-form-input:-ms-input-placeholder,
.auth-container .auth-form-input:-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}

.auth-container .auth-form-input:focus::placeholder,
.auth-container .auth-form-input:focus::-webkit-input-placeholder,
.auth-container .auth-form-input:focus::-moz-placeholder,
.auth-container .auth-form-input:focus:-ms-input-placeholder,
.auth-container .auth-form-input:focus:-moz-placeholder {
    color: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
}
