/* ===========================================================================
   login-redesign.css  —  Green split-card login (matches reference screenshot)
   All rules scoped under .lr-* to avoid clashing with login.css / Bootstrap.
   Loaded AFTER login.css so the .lr-page wrapper governs the auth screen.
   =========================================================================== */

:root {
    --lr-green: #5BA86B;
    --lr-green-deep: #3F8F55;
    --lr-green-soft: #E7F2E9;
    --lr-panel-top: #EAF4EC;
    --lr-panel-bot: #D6ECDB;
    --lr-ink: #1F2A33;       /* dark sign-in button */
    --lr-ink-hover: #2B3A45;
    --lr-text: #28332B;
    --lr-muted: #6B7A6E;
    --lr-border: #D8E2DA;
    --lr-border-focus: #5BA86B;
    --lr-card-bg: #FFFFFF;
    --lr-page-bg: #DDEDE0;
}

/* ---- page ------------------------------------------------------------- */
.lr-page {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
    background: radial-gradient(1200px 600px at 50% 30%, #E9F4EC 0%, var(--lr-page-bg) 70%, #CFE6D5 100%);
    font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--lr-text);
}

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

/* ---- card ------------------------------------------------------------- */
.lr-card {
    width: 100%;
    max-width: 940px;
    min-height: 560px;
    display: flex;
    background: var(--lr-card-bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px -25px rgba(31, 60, 40, 0.35),
                0 8px 24px -12px rgba(31, 60, 40, 0.18);
    animation: lr-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lr-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

/* ---- left brand panel ------------------------------------------------- */
.lr-left {
    position: relative;
    flex: 1 1 50%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, var(--lr-panel-top) 0%, var(--lr-panel-bot) 100%);
    overflow: hidden;
}

/* soft decorative glow + ring for atmosphere */
.lr-left::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(91, 168, 107, 0.18) 0%, rgba(91, 168, 107, 0) 65%);
    z-index: 0;
}

.lr-left::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    border: 1px dashed rgba(63, 143, 85, 0.25);
    border-radius: 50%;
    z-index: 0;
}

.lr-logo {
    position: relative;
    z-index: 1;
    width: 230px;
    max-width: 78%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(31, 60, 40, 0.12));
    animation: lr-fade 0.7s ease 0.15s both;
}

.lr-tagline {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--lr-muted);
    animation: lr-fade 0.7s ease 0.28s both;
}

.lr-tagline strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--lr-green-deep);
}

@keyframes lr-fade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ---- right form panel ------------------------------------------------- */
.lr-right {
    flex: 1 1 50%;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lr-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--lr-ink);
    margin: 0 0 4px;
}

.lr-welcome {
    margin: 0 0 30px;
    font-size: 0.92rem;
    color: var(--lr-muted);
}

.lr-form { width: 100%; }

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

.lr-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lr-muted);
    letter-spacing: 0.2px;
}

/* override Bootstrap .form-control just inside .lr-page */
.lr-page .lr-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 0.95rem;
    color: var(--lr-text);
    background: #fff;
    border: 1.5px solid var(--lr-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lr-page .lr-input::placeholder { color: #AFBCB2; }

.lr-page .lr-input:focus {
    border-color: var(--lr-border-focus);
    box-shadow: 0 0 0 4px rgba(91, 168, 107, 0.15);
}

/* override Bootstrap .btn-primary just inside .lr-page */
.lr-page .lr-btn {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    background: var(--lr-ink);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.06s ease, box-shadow 0.18s ease;
}

.lr-page .lr-btn:hover {
    background: var(--lr-ink-hover);
    box-shadow: 0 10px 24px -10px rgba(31, 42, 51, 0.6);
}

.lr-page .lr-btn:active { transform: translateY(1px); }

.lr-page .lr-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 168, 107, 0.35);
}

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 768px) {
    .lr-card {
        flex-direction: column;
        max-width: 440px;
        min-height: 0;
    }
    .lr-left {
        padding: 36px 28px 28px;
    }
    .lr-logo { width: 170px; }
    .lr-right { padding: 36px 28px 44px; }
}

@media (max-width: 420px) {
    .lr-right { padding: 28px 20px 36px; }
}
