/* Variables */
:root {
    --primary-color: #1a237e;  /* Navy Blue */
    --secondary-color: #d32f2f;  /* Red */
    --accent-color: #000000;  /* Black */
    --dark-color: #0a0a0a;
    --light-color: #ffffff;
    --gray-color: #424242;
    --text-color: #1a1a1a;
    --text-secondary: #616161;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #2e7d32;
    --warning-color: #f57c00;
    --danger-color: #c62828;
    --primary-rgb: 26, 35, 126;
    --success-rgb: 46, 125, 50;
    --warning-rgb: 245, 124, 0;
    --danger-rgb: 198, 40, 40;
    --gradient-primary: linear-gradient(135deg, #1a237e, #000051);
    --gradient-secondary: linear-gradient(135deg, #d32f2f, #b71c1c);
    --gradient-accent: linear-gradient(135deg, #000000, #1a1a1a);
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('https://images.pexels.com/photos/1552242/pexels-photo-1552242.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--light-color);
}

/* Top Bar */
.top-bar {
    background-color: rgba(29, 29, 29, 0.65);
    padding: 6px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.contact-info {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin: 5px 10px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
}

/* Split Container */
.split-container {
    display: flex;
    width: 100%;
    max-width: 850px;
    min-height: 420px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quote Side */
.quote-side {
    flex: 0.32;
    background: var(--gradient-primary);
    padding: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.pexels.com/photos/1552242/pexels-photo-1552242.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.quote-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    margin-bottom: 18px;
}

.brand-logo img {
    width: 60px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.brand-logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quote-box {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.quote-box i {
    font-size: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.quote-box h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.quote-box p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

.quote-author {
    font-style: italic;
    font-size: 12px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
}

/* Login Side */
.login-side {
    flex: 0.68;
    background: rgba(255, 255, 255, 0.98);
    padding: 32px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.login-content {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-header {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 3px;
}

.login-subtext {
    color: var(--gray-color);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    background: white;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.15);
}

.input-group i {
    padding: 0 12px;
    color: var(--primary-color);
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.input-group input::placeholder {
    color: #999;
}

.toggle-password {
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Remember Me Styles */
.remember-me-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    user-select: none;
}

.remember-me-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-right: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: white;
}

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

.remember-me-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me-checkbox label {
    color: var(--gray-color);
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.remember-me-checkbox:hover input[type="checkbox"] {
    border-color: var(--primary-color);
}

/* User Type Section */
.user-type-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.user-type {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.user-type input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.user-type label {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.login-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: 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.4);
}

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

.login-btn i {
    transition: var(--transition);
}

.login-btn:hover i {
    transform: translateX(5px);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer p {
    color: var(--gray-color);
    font-size: 14px;
}

.join-now-btn {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.join-now-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.join-now-btn:hover {
    color: var(--secondary-color);
}

.join-now-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Error Message */
.error-message {
    background-color: #ffe6e6;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
    font-size: 14px;
    border-left: 4px solid var(--danger-color);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animations */
.animate__fadeIn {
    animation-duration: 1s;
}

.animate__fadeInLeft {
    animation-duration: 0.8s;
}

.animate__fadeInRight {
    animation-duration: 0.8s;
}

.animate__bounceIn {
    animation-duration: 1s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }

    .quote-side {
        padding: 18px;
    }

    .quote-box {
        padding: 10px;
        max-width: 320px;
        margin: 0 auto;
    }

    .quote-box h2 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-info span {
        margin: 5px 0;
    }

    .main-container {
        padding: 90px 20px 20px;
    }

    .login-header {
        font-size: 24px;
    }

    .user-type-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .quote-side {
        padding: 15px;
    }

    .quote-box {
        padding: 8px;
        max-width: 280px;
    }

    .quote-box h2 {
        font-size: 13px;
    }

    .login-side {
        padding: 22px 18px;
    }

    .brand-logo h1 {
        font-size: 20px;
    }
}

/* Enhanced Member Profile Styling */
.profile-section {
    font-family: 'Cormorant Garamond', serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-member);
    border-radius: 2px;
}

.profile-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: capitalize;
}

.profile-subtitle {
    font-size: 1.2rem;
    color: var(--member-primary);
    font-style: italic;
    letter-spacing: 1px;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    padding: 5px;
    background: var(--gradient-member);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-color);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.2);
    transition: all 0.5s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.edit-photo-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--gradient-member);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.edit-photo-btn:hover {
    transform: scale(1.1) rotate(180deg);
}

.profile-details {
    background: var(--light-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 30px rgba(155, 89, 182, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(155, 89, 182, 0.1);
}

.profile-field {
    margin-bottom: 2rem;
    position: relative;
}

.profile-field label {
    display: block;
    font-size: 1.1rem;
    color: var(--member-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

.profile-field input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--member-accent);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--dark-color);
    background: rgba(155, 89, 182, 0.02);
}

.profile-field input:focus {
    border-color: var(--member-primary);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.1);
    outline: none;
}

.profile-field input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

/* Member Stats Section */
.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.1);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(155, 89, 182, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--member-primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--member-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Raleway', sans-serif;
}

/* Enhanced Buttons */
.profile-btn {
    background: var(--gradient-member);
    color: var(--light-color);
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.2);
}

.profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(155, 89, 182, 0.3);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0); }
}

.profile-image {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-header h1 {
        font-size: 3rem;
    }
    
    .profile-details {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 2.5rem;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .member-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-details {
        padding: 1.5rem;
    }
    
    .member-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-image-container {
        width: 120px;
        height: 120px;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary-color: #3949ab;
    --secondary-color: #ef5350;
    --accent-color: #212121;
    --dark-color: #ffffff;
    --light-color: #121212;
    --gray-color: #9e9e9e;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #424242;
    --card-bg: #1e1e1e;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

/* Loading Animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

.strength-weak { background: var(--danger-color); width: 25%; }
.strength-medium { background: var(--warning-color); width: 50%; }
.strength-strong { background: var(--success-color); width: 100%; }

/* 2FA Styles */
.two-factor-auth {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.verification-code {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.verification-code input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-color);
    color: var(--text-color);
}

/* Social Login Buttons */
.social-login {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Newsletter Subscription */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
    color: var(--light-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Feedback System */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.language-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-btn:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    .language-selector {
        top: 10px;
        left: 10px;
    }
} 