/* ==========================================================================
   Login page (lg- prefix)
   Standalone stylesheet - the login view does not load AdminLTE / Bootstrap.
   ========================================================================== */

:root {
    --lg-red: #b8151c;
    --lg-red-dark: #98111a;
    --lg-red-soft: #f8e9ea;
    --lg-ink: #1c1d20;
    --lg-text: #2f333a;
    --lg-muted: #7a828c;
    --lg-border: #dcdfe4;
    --lg-bg: #f4f4f5;
    --lg-white: #ffffff;
    --lg-font: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

.lg-body {
    font-family: var(--lg-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--lg-text);
    background: var(--lg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lg-page {
    display: flex;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Brand panel (left)
   -------------------------------------------------------------------------- */

.lg-brand {
    position: relative;
    flex: 0 0 52%;
    display: flex;
    background-color: var(--lg-ink);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--lg-white);
    overflow: hidden;
}

.lg-brand-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(28, 29, 32, 0.55) 0%, rgba(28, 29, 32, 0.15) 40%, rgba(28, 29, 32, 0.75) 100%),
        linear-gradient(90deg, rgba(28, 29, 32, 0.35) 0%, rgba(28, 29, 32, 0) 60%);
}

.lg-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 48px 56px;
}

.lg-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.lg-brand-mark {
    display: inline-block;
    width: 28px;
    height: 3px;
    background: var(--lg-red);
    border-radius: 2px;
}

.lg-brand-title {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--lg-white);
}

.lg-brand-sub {
    margin: 0;
    max-width: 420px;
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Form panel (right)
   -------------------------------------------------------------------------- */

.lg-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--lg-white);
}

.lg-card {
    width: 100%;
    max-width: 400px;
}

.lg-logo {
    margin-bottom: 36px;
    text-align: center;
}

.lg-logo img {
    max-width: 210px;
    height: auto;
}

.lg-heading {
    margin-bottom: 32px;
    text-align: center;
}

.lg-heading h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--lg-ink);
}

.lg-heading p {
    margin: 0;
    font-size: 15px;
    color: var(--lg-muted);
}

/* Alert ---------------------------------------------------------------- */

.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid #efc6c9;
    border-left: 3px solid var(--lg-red);
    border-radius: 6px;
    background: var(--lg-red-soft);
    color: #7a1016;
    font-size: 14px;
    line-height: 1.45;
}

.lg-alert > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 16px;
    color: var(--lg-red);
}

.lg-alert-body {
    flex: 1 1 auto;
}

.lg-alert-body p {
    margin: 0 0 4px;
}

.lg-alert-body p:last-child {
    margin-bottom: 0;
}

.lg-alert-close {
    flex: 0 0 auto;
    margin: -4px -6px 0 0;
    padding: 0 6px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #a3454b;
    cursor: pointer;
}

.lg-alert-close:hover {
    color: var(--lg-red);
}

/* Fields --------------------------------------------------------------- */

.lg-field {
    margin-bottom: 20px;
}

.lg-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lg-text);
}

.lg-input {
    position: relative;
    display: flex;
    align-items: center;
}

.lg-input > i {
    position: absolute;
    left: 15px;
    font-size: 16px;
    color: var(--lg-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.lg-input input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 44px;
    border: 1px solid var(--lg-border);
    border-radius: 6px;
    background: var(--lg-white);
    font-family: inherit;
    font-size: 16px;
    color: var(--lg-ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lg-input input::placeholder {
    color: #aab1ba;
}

.lg-input input:hover {
    border-color: #c4c9d0;
}

.lg-input input:focus {
    border-color: var(--lg-red);
    box-shadow: 0 0 0 3px rgba(184, 21, 28, 0.12);
}

.lg-input input:focus ~ i,
.lg-input:focus-within > i {
    color: var(--lg-red);
}

.lg-toggle-pass {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    font-size: 15px;
    color: var(--lg-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lg-toggle-pass:hover {
    color: var(--lg-ink);
    background: #f1f2f4;
}

/* Submit --------------------------------------------------------------- */

.lg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: var(--lg-red);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lg-white);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.lg-submit i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.lg-submit:hover {
    background: var(--lg-red-dark);
    box-shadow: 0 6px 16px rgba(184, 21, 28, 0.22);
}

.lg-submit:hover i {
    transform: translateX(3px);
}

.lg-submit:active {
    transform: translateY(1px);
    box-shadow: none;
}

.lg-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 21, 28, 0.3);
}

/* Footer --------------------------------------------------------------- */

.lg-footer {
    margin: 40px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--lg-muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .lg-brand {
        flex-basis: 45%;
    }

    .lg-brand-content {
        padding: 40px;
    }

    .lg-brand-title {
        font-size: 34px;
    }
}

@media (max-width: 860px) {
    .lg-page {
        flex-direction: column;
    }

    .lg-brand {
        flex: 0 0 auto;
        min-height: 220px;
        background-position: center 40%;
    }

    .lg-brand-content {
        padding: 28px 24px;
    }

    .lg-brand-bottom {
        margin-top: 40px;
    }

    .lg-brand-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .lg-brand-sub {
        font-size: 15px;
    }

    .lg-main {
        padding: 40px 24px 32px;
    }

    .lg-logo {
        margin-bottom: 28px;
    }

    .lg-logo img {
        max-width: 180px;
    }

    .lg-heading h1 {
        font-size: 24px;
    }

    .lg-footer {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .lg-body {
        font-size: 15px;
    }

    .lg-brand {
        min-height: 180px;
    }

    .lg-brand-top {
        font-size: 13px;
    }

    .lg-brand-bottom {
        margin-top: 28px;
    }

    .lg-brand-title {
        font-size: 22px;
    }

    .lg-main {
        padding: 32px 16px 24px;
    }
}
