﻿/* ============================================================
   Login Page - LIGHT MODE (Default)
   ============================================================ */

.login-min-height {
    min-height: 85vh;
}

.login-page {
    position: relative;
    z-index: 1;
}

/* ---------- Background Shapes ---------- */
.login-bg-shapes {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.login-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    top: -100px;
    right: -100px;
    animation: loginFloat1 20s ease-in-out infinite;
}

.login-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    bottom: -80px;
    left: -80px;
    animation: loginFloat2 25s ease-in-out infinite;
}

.login-shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    top: 40%;
    left: 10%;
    animation: loginFloat3 18s ease-in-out infinite;
}

.login-shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ea580c, #f97316);
    top: 20%;
    right: 15%;
    animation: loginFloat1 22s ease-in-out infinite reverse;
}

@keyframes loginFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 35px) scale(1.02);
    }
}

@keyframes loginFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-25px, -30px) scale(1.08);
    }

    66% {
        transform: translate(20px, 25px) scale(0.92);
    }
}

@keyframes loginFloat3 {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, -40px);
    }
}

/* ---------- Main Card ---------- */
.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ---------- Brand Side ---------- */
.login-brand-side {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-content {
    position: relative;
    z-index: 2;
}

.login-logo {
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.login-brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.login-brand-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
}

.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
}

.login-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
}

.login-brand-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 1;
}

    .login-brand-wave svg {
        display: block;
        width: 100%;
        height: auto;
    }

/* ---------- Form Side ---------- */
.login-form-side {
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.login-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo-icon-sm {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.login-form-header {
    margin-bottom: 32px;
    text-align: center;
}

.login-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.login-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 400;
}

/* Validation */
.login-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-form-error {
    display: block;
    font-size: 0.78rem;
    color: #dc2626;
    font-weight: 500;
    margin-top: 5px;
    padding-right: 4px;
    min-height: 18px;
}

/* ---------- Fields ---------- */
.login-field {
    margin-bottom: 20px;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

    .login-label i {
        color: #0d9488;
        font-size: 0.8rem;
        width: 16px;
        text-align: center;
    }

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    padding-right: 44px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    width: 100%;
}

    .login-input:focus {
        border-color: #0d9488;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
        background: #fff;
        outline: none;
    }

    .login-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

.login-input-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-input:focus ~ .login-input-icon {
    color: #0d9488;
}

.login-password-input {
    padding-left: 44px;
}

.login-toggle-password {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    line-height: 1;
}

    .login-toggle-password:hover {
        color: #0d9488;
    }

/* ---------- Options ---------- */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 500;
    user-select: none;
}

.login-remember-input {
    display: none;
}

.login-remember-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .login-remember-custom::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.6rem;
        color: #fff;
        opacity: 0;
        transform: scale(0.5);
        transition: all 0.2s ease;
    }

.login-remember-input:checked ~ .login-remember-custom {
    background: #0d9488;
    border-color: #0d9488;
}

    .login-remember-input:checked ~ .login-remember-custom::after {
        opacity: 1;
        transform: scale(1);
    }

.login-forgot-link {
    font-size: 0.84rem;
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .login-forgot-link:hover {
        color: #0f766e;
        text-decoration: underline;
    }

/* ---------- Submit ---------- */
.login-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
    margin-bottom: 24px;
}

    .login-submit-btn:hover {
        background: linear-gradient(135deg, #0f766e, #0d9488);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
    }

    .login-submit-btn:active {
        transform: translateY(0);
    }

/* ---------- Divider ---------- */
.login-divider {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

.login-divider-text {
    padding: 0 16px;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- Social ---------- */
.login-social-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.login-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-social-google {
    color: #ea4335;
}

    .login-social-google:hover {
        background: #ea4335;
        color: #fff;
        border-color: #ea4335;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
    }

.login-social-facebook {
    color: #1877f2;
}

    .login-social-facebook:hover {
        background: #1877f2;
        color: #fff;
        border-color: #1877f2;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    }

.login-social-apple {
    color: #1e293b;
}

    .login-social-apple:hover {
        background: #1e293b;
        color: #fff;
        border-color: #1e293b;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
    }

/* ---------- Register ---------- */
.login-register-link {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

    .login-register-link a {
        color: #0d9488;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .login-register-link a:hover {
            color: #0f766e;
            text-decoration: underline;
        }


/* ============================================================
   Login Page - DARK MODE
   ============================================================ */

.dark .login-shape {
    opacity: 0.06;
}

.dark .login-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Dark Brand */
.dark .login-brand-side {
    background: linear-gradient(135deg, #0f332e 0%, #134e4a 40%, #115e59 100%);
}

.dark .login-logo-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .login-brand-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .login-brand-feature {
    color: rgba(255, 255, 255, 0.7);
}

.dark .login-feature-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Dark Form */
.dark .login-form-side {
    background: #1e293b;
}

.dark .login-logo-icon-sm {
    background: linear-gradient(135deg, #134e4a, #0d9488);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

.dark .login-form-title {
    color: #f1f5f9;
}

.dark .login-form-subtitle {
    color: #94a3b8;
}

.dark .login-validation-summary {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #f87171;
}

.dark .login-form-error {
    color: #f87171;
}

.dark .login-label {
    color: #cbd5e1;
}

    .dark .login-label i {
        color: #5eead4;
    }

.dark .login-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

    .dark .login-input:focus {
        border-color: #0d9488;
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
        background: #1e293b;
    }

    .dark .login-input::placeholder {
        color: #64748b;
    }

.dark .login-input-icon {
    color: #64748b;
}

.dark .login-input:focus ~ .login-input-icon {
    color: #5eead4;
}

.dark .login-toggle-password {
    color: #64748b;
}

    .dark .login-toggle-password:hover {
        color: #5eead4;
    }

/* Dark Options */
.dark .login-remember {
    color: #94a3b8;
}

.dark .login-remember-custom {
    border-color: #475569;
}

.dark .login-remember-input:checked ~ .login-remember-custom {
    background: #0d9488;
    border-color: #0d9488;
}

.dark .login-forgot-link {
    color: #5eead4;
}

    .dark .login-forgot-link:hover {
        color: #99f6e4;
    }

/* Dark Submit */
.dark .login-submit-btn {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

    .dark .login-submit-btn:hover {
        box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
    }

/* Dark Divider */
.dark .login-divider::before,
.dark .login-divider::after {
    background: #334155;
}

.dark .login-divider-text {
    color: #64748b;
}

/* Dark Social */
.dark .login-social-btn {
    background: #0f172a;
    border-color: #334155;
}

.dark .login-social-google {
    color: #f87171;
}

    .dark .login-social-google:hover {
        background: #ea4335;
        color: #fff;
        border-color: #ea4335;
    }

.dark .login-social-facebook {
    color: #60a5fa;
}

    .dark .login-social-facebook:hover {
        background: #1877f2;
        color: #fff;
        border-color: #1877f2;
    }

.dark .login-social-apple {
    color: #e2e8f0;
}

    .dark .login-social-apple:hover {
        background: #e2e8f0;
        color: #1e293b;
        border-color: #e2e8f0;
    }

/* Dark Register */
.dark .login-register-link {
    color: #94a3b8;
}

    .dark .login-register-link a {
        color: #5eead4;
    }

        .dark .login-register-link a:hover {
            color: #99f6e4;
        }


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .login-form-side {
        padding: 40px 32px;
    }

    .login-card {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .login-form-side {
        padding: 32px 24px;
    }

    .login-card {
        border-radius: 16px;
    }

    .login-form-title {
        font-size: 1.3rem;
    }

    .login-input {
        padding: 11px 14px;
        padding-right: 40px;
        font-size: 0.88rem;
    }

    .login-submit-btn {
        padding: 13px 20px;
        font-size: 0.9rem;
    }

    .login-social-btn {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 576px) {
    .login-form-side {
        padding: 28px 18px;
    }

    .login-card {
        border-radius: 14px;
    }

    .login-form-header {
        margin-bottom: 24px;
    }

    .login-form-title {
        font-size: 1.15rem;
    }

    .login-form-subtitle {
        font-size: 0.82rem;
    }

    .login-field {
        margin-bottom: 16px;
    }

    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .login-social-btns {
        gap: 8px;
    }

    .login-social-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }
}
