/* =======================
   GLOBAL RESET
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* =======================
   PAGE BACKGROUND
======================= */
.login-bg {
    min-height: 100vh;
    background: url("../images/login_background.png") no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* padding for very small screens */
}

/* =======================
   MAIN WRAPPER
======================= */
.login-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

/* =======================
   LEFT BRAND PANEL
======================= */
.brand-panel {
    flex: 1;
    padding: 60px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    );
    min-width: 300px;
}

.brand-panel h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-panel p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #dbeafe;
    max-width: 420px;
}

.brand-panel ul {
    list-style: none;
    padding-left: 0;
}

.brand-panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.brand-panel i {
    color: #4ade80;
    font-size: 18px;
}

/* =======================
   RIGHT LOGIN PANEL
======================= */
.login-panel {
    flex: 1;
    background: #ffffff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 280px;
}

/* Header */
.login-header {
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.login-header p {
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
}

/* =======================
   FORM ERROR
======================= */
.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    font-size: 13px;
    font-weight: 500;
    border-left: 5px solid #dc2626;
    animation: shakeIn 0.4s ease;
}

.form-error i {
    font-size: 18px;
    color: #dc2626;
}

/* =======================
   INPUT GROUPS
======================= */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group input {
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: #2563eb;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.25s ease;
    background: #ffffff;
    padding: 0 6px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -7px;
    font-size: 11px;
    color: #2563eb;
}

/* =======================
   PASSWORD FIELD
======================= */
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 20px;
    transition: color 0.2s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #2563eb;
}

/* =======================
   BUTTON
======================= */
.login-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

/* =======================
   LINKS
======================= */
.login-actions {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
}

.login-actions a {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

/* =======================
   FOOTER
======================= */
.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* =======================
   ANIMATION
======================= */
@keyframes shakeIn {
    0% {
        transform: translateX(-6px);
        opacity: 0;
    }
    50% {
        transform: translateX(6px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1100px) {
    .login-wrapper {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
    }

    .brand-panel {
        display: none; /* hide brand panel for smaller screens */
    }

    .login-panel {
        padding: 40px 28px;
    }
}

@media (max-width: 600px) {
    .login-panel {
        padding: 32px 20px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 13px;
    }

    .input-group input {
        padding: 14px 12px;
        font-size: 13px;
    }

    .login-btn {
        padding: 14px;
        font-size: 14px;
    }
}
