﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    /*  background-image: url('../images/.png');*/
    background-image: url('../images/bg.png');
    background-position: center;
    background-size: cover;
}

/* ── CARD WRAPPER ── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18), 0 4px 16px rgba(0,0,0,0.08);
    background: #fff;
    animation: cardIn 0.55s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── LEFT PANEL ── */
.left-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #198754 0%, #198754 60%, #209b71 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px 0 32px;
    overflow: hidden;
    border: 1px solid #FFF;
}

    .left-panel::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(255,255,255,0.07);
    }

    .left-panel::after {
        content: '';
        position: absolute;
        bottom: 80px;
        left: -40px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
    }

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgb(255 255 255);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 8px 16px 8px 10px;
    width: fit-content;
}
    .brand-badge img {
        width: 100px;
    }

    .brand-badge .badge-icon {
        width: 32px;
        height: 32px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .brand-badge .badge-icon img {
            width: 18px;
        }

    .brand-badge span {
        font-family: 'Nunito', sans-serif;
        font-weight: 700;
        font-size: 15px;
        color: #fff;
    }

.left-headline {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

    .left-headline h2 {
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        font-size: 28px;
        line-height: 1.25;
        color: #fff;
        margin-bottom: 12px;
    }

    .left-headline p {
        font-size: 13.5px;
        color: rgba(255,255,255,0.78);
        line-height: 1.6;
        max-width: 240px;
    }

.left-illustration {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: auto;
}

    .left-illustration img {
        width: 88%;
        max-width: 280px;
        display: block;
        margin: 0 auto;
        filter: drop-shadow(0 16px 32px rgba(0,0,0,0.2));
        animation: floatUp 3.5s ease-in-out infinite alternate;
    }

@keyframes floatUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* ── RIGHT PANEL ── */
.right-panel {
    flex: 1;
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}


    .right-panel .panel-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 28px;
    }

.panel-logo .logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #005138, #00281c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .panel-logo .logo-circle img {
        width: 22px;
        filter: brightness(0) invert(1);
    }

.panel-logo .logo-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #1a1a2e;
}

.right-panel h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.right-panel .subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 26px;
}

/* ── FORM FIELDS ── */
.field-group {
    margin-bottom: 14px;
    position: relative;
}

    .field-group .field-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #7a7d85;
        font-size: 14px;
        pointer-events: none;
    }

    .field-group input.form-ctrl {
        width: 100%;
        padding: 12px 42px 12px 40px;
        border: 1.5px solid #8c8f95;
        border-radius: 12px;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        color: #0f172a;
        background: #f8fafc;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .field-group select.form-ctrl {
        width: 100%;
        padding: 12px 42px 12px 40px;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        color: #0f172a;
        background: #f8fafc;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .field-group input.form-ctrl::placeholder {
        color: #8c8f95;
    }

        .field-group input.form-ctrl:focus {
            border-color: #005138;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(30,110,245,0.1);
        }

    .field-group .toggle-pwd {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #94a3b8;
        font-size: 14px;
        transition: color 0.2s;
    }

        .field-group .toggle-pwd:hover {
            color: #005138;
        }

/* Captcha row */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .captcha-row img.captcha-img {
        height: 42px;
        border-radius: 8px;
        border: 1.5px solid #e2e8f0;
    }

    .captcha-row .captcha-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

    .btn-icon:hover {
        background: #005138;
        color: #fff;
        border-color: #005138;
    }

.btn-speak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-speak:hover {
        background: #005138;
        color: #fff;
        border-color: #005138;
    }

/* Remember / Forgot */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .remember-row .remember-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #64748b;
        cursor: pointer;
    }

    .remember-row input[type="checkbox"] {
        accent-color: #005138;
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

    .remember-row .forgot-link {
        font-size: 13px;
        font-weight: 600;
        color: #005138;
        text-decoration: none;
    }

        .remember-row .forgot-link:hover {
            text-decoration: underline;
        }

/* Sign In btn */
.btn-signin {
    width: 100%;
    padding: 13px;
    background: linear-gradient(145deg, #198754 0%, #198754 60%, #209b71 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgb(30 116 245 / 35%);
}

    .btn-signin:hover {
        opacity: 0.93;
        transform: translateY(-1px);
        box-shadow: 0 6px 22px rgba(30,110,245,0.4);
    }

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #cbd5e1;
    font-size: 12px;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        color: #94a3b8;
        white-space: nowrap;
        font-size: 12px;
    }

/* Social btns */
.social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}

    .btn-social:hover {
        border-color: #005138;
        background: #f0f5ff;
        box-shadow: 0 2px 8px rgba(30,110,245,0.1);
        color: #005138;
    }

    .btn-social .social-icon {
        width: 18px;
        height: 18px;
    }

/* Register link */
.register-row {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

    .register-row a {
        font-weight: 700;
        color: #005138;
        text-decoration: none;
        margin-left: 4px;
    }

        .register-row a:hover {
            text-decoration: underline;
        }

/* Validation */
.field-validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 32px 24px;
    }

    .login-card {
        max-width: 420px;
    }
}


/* Enhanced Card Styles - New classes that won't conflict with existing */
.enhanced-card-wrapper {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .enhanced-card-wrapper:hover {
        transform: translateY(-5px);
    }

.enhanced-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafaff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid #67a8ba40;
}

    .enhanced-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 5px 12px rgba(0, 0, 0, 0.05);
    }

.enhanced-card-body {
    padding: 1.5rem;
}

.enhanced-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.enhanced-flex-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .enhanced-flex-container {
        gap: 1.25rem;
    }
}

.enhanced-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.enhanced-card:hover .enhanced-avatar {
    transform: scale(1.05);
}

.enhanced-avatar-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 8px 16px rgba(255, 152, 0, 0.2);
}

.enhanced-avatar-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.2);
}

.enhanced-avatar-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 8px 16px rgba(244, 67, 54, 0.2);
}

.enhanced-content {
    flex: 1;
}

.enhanced-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .enhanced-title {
        font-size: 1.25rem;
    }
}

.enhanced-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

.enhanced-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Icon sizing */
.enhanced-icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enhanced-card-body {
        padding: 1.25rem;
    }

    .enhanced-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .enhanced-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .enhanced-card-body {
        padding: 1rem;
    }

    .enhanced-flex-container {
        gap: 0.75rem;
    }

    .enhanced-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}