﻿/* ── Page Layout ─────────────────────────────────────────── */
html, body {
    height: 100%;
    margin: 0;
    background-color: #f4f6f9;
}

.login-wrapper {
    display: flex;
    height: 100vh;
}

/* ── Left Branding Panel ─────────────────────────────────── */
.login-brand-panel {
    width: 360px;
    min-width: 360px;
    background: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .login-brand-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255,255,255,0.04);
    }

    .login-brand-panel::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255,255,255,0.03);
    }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .brand-features li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: rgba(255,255,255,0.7);
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

        .brand-features li i {
            color: #3498db;
            font-size: 1rem;
            flex-shrink: 0;
        }

.brand-footer {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* ── Right Login Panel ───────────────────────────────────── */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f4f6f9;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
}

.login-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.login-card-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.35rem;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
    }

.input-group .form-control {
    border-right: none;
}

.input-group-text {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.15s;
}

    .input-group-text:hover {
        color: #2c3e50;
    }

.input-group .form-control:focus ~ .input-group-text {
    border-color: #3498db;
}

/* ── Button ──────────────────────────────────────────────── */
.btn-login {
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    width: 100%;
    transition: background 0.15s, transform 0.1s;
}

    .btn-login:hover {
        background: #2980b9;
        color: #fff;
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.7;
        transform: none;
        cursor: not-allowed;
    }

/* ── Alert ───────────────────────────────────────────────── */
.login-alert {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.25rem;
    display: none;
}

/* ── Forgot Link ─────────────────────────────────────────── */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #3498db;
    text-decoration: none;
    margin-top: 0.4rem;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-brand-panel {
        display: none;
    }
}
