/* Premium Split-Screen Login Page - Cogie Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow: hidden;
    height: 100vh;
}

/* Main Container - Full Height Split with gap */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding: 8px;
    background: #ffffff;
}

/* ================= LEFT SIDE - IMAGE SECTION ================= */
.login-image-side {
    position: relative;
    width: 50%;
    min-height: calc(100vh - 16px);
    background-image: url('../../../deel.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    border-radius: 24px;
    overflow: hidden;
}

/* Dark gradient overlay for text readability */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 24px;
}

/* Content on the image */
.login-image-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 400px;
}

/* Wise Quote Label */
.wise-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quote-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.quote-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Main Quote Heading */
.main-quote h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

/* Sub Quote */
.sub-quote p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ================= RIGHT SIDE - FORM SECTION ================= */
.login-form-side {
    width: 50%;
    height: calc(100vh - 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    overflow: hidden;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 48px;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

/* Modern Checkbox */
.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    user-select: none;
}

.modern-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modern-checkbox input:checked + .checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.modern-checkbox input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: #ffffff;
}

.checkbox-text {
    font-size: 13px;
    color: #4b5563;
}

/* Forgot Link */
.forgot-link {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1a1a1a;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 48px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-login:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

/* Google Button */
.btn-google {
    width: 100%;
    height: 48px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Footer */
.login-footer {
    margin-top: 40px;
    text-align: center;
}

.login-footer p {
    font-size: 12px;
    color: #9ca3af;
}

/* Error Messages */
span.error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.form-group.has-error .modern-input {
    border-color: #ef4444;
    background: #fef2f2;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
    .login-image-side {
        padding: 40px;
    }

    .main-quote h1 {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .login-container {
        flex-direction: column-reverse;
        min-height: auto;
        height: auto;
        padding: 8px;
    }

    .login-image-side {
        width: 100%;
        min-height: 35vh;
        height: auto;
        border-radius: 24px;
        padding: 30px;
        margin-bottom: 8px;
    }

    .image-overlay {
        border-radius: 24px;
    }

    .main-quote h1 {
        font-size: 32px;
    }

    .sub-quote p {
        font-size: 13px;
    }

    .login-form-side {
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 30px 24px;
        overflow: visible;
    }

    .welcome-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .main-quote h1 {
        font-size: 28px;
    }

    .wise-quote {
        margin-bottom: 16px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .modern-input {
        height: 44px;
    }

    .btn-login,
    .btn-google {
        height: 44px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hide old elements */
.auth-main,
.sign-area,
.slideIn {
    display: none !important;
}