/* =========================
   RESET / BASE
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body.login-page-body {
    min-height: 100vh;
    background: #edf1f5;
    color: #111827;
}


/* =========================
   LOGIN LAYOUT
========================= */

.login-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-card-shell {
    width: 100%;
    max-width: 1000px;
    min-height: 580px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f3f5f7;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

/* =========================
   LEFT PANEL
========================= */

.login-brand-panel {
    background: #f8fafc;
    border-radius: 12px 0 0 12px;
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.logo-center {
    margin-bottom: 10px;
}

.logo-center img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
}

.logo-fallback {
    font-size: 30px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.3px;
}

.brand-version {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

.brand-intro {
    margin: 0 0 26px 0;
    max-width: 360px;
    font-size: 18px;
    line-height: 1.55;
    color: #374151;
}

.brand-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 380px;
}

.brand-point {
    background: #e5e7eb;
    border-radius: 10px;
    padding: 15px 16px;
}

.brand-point strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    color: #111827;
}

.brand-point span {
    display: block;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.45;
}

/* =========================
   RIGHT PANEL
========================= */

.login-form-panel {
    background: linear-gradient(180deg, #2e58dd, #2a49c7);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-form-card {
    width: 100%;
    max-width: 330px;
    text-align: center;
}

.login-title {
    font-size: 40px;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 22px 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
}

.input-group {
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    color: #111827;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.btn-login {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.login-footer-links {
    margin-top: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer-links a {
    color: #ffffff;
    text-decoration: underline;
}

.login-footer-links span {
    color: rgba(255, 255, 255, 0.8);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .login-card-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-brand-panel {
        border-radius: 12px 12px 0 0;
        padding: 30px 24px;
    }

    .login-form-panel {
        border-radius: 0 0 12px 12px;
        padding: 24px;
    }

    .logo-center img {
        width: 200px;
    }

    .logo-fallback {
        font-size: 24px;
    }

    .brand-intro {
        font-size: 16px;
    }

    .brand-point strong {
        font-size: 16px;
    }

    .brand-point span {
        font-size: 14px;
    }

    .login-title {
        font-size: 34px;
    }
}