@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../font/Lato-Regular.woff") format("woff"), url("../font/Lato-Regular.ttf") format("truetype");
}

:root {
    --dar-green-950: #082f24;
    --dar-green-900: #0b3d2e;
    --dar-green-800: #0f5132;
    --dar-green-700: #166534;
    --dar-gold: #d4a72c;
    --border: #dce3e7;
    --text: #25333d;
    --muted: #6b7882;
}

html,
body {
    min-height: 100%;
}

body.dar-login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: #eef2f1;
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(380px, 1.15fr) minmax(420px, .85fr);
}

.login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 64px clamp(42px, 7vw, 104px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 47, 36, .97), rgba(22, 101, 52, .93)),
        radial-gradient(circle at top right, rgba(212, 167, 44, .5), transparent 42%);
    overflow: hidden;
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
}

.login-brand-panel::before {
    top: -180px;
    right: -130px;
    width: 430px;
    height: 430px;
}

.login-brand-panel::after {
    right: 65px;
    bottom: -210px;
    width: 360px;
    height: 360px;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.login-kicker {
    margin-bottom: 16px;
    color: #f2d675;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-brand-content h1 {
    max-width: 560px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.08;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: #f6f8f7;
}

.login-box {
    width: 100%;
    max-width: 430px;
    margin: 0;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 18px;
    color: var(--text);
    text-align: left;
}

.login-logo img {
    width: 82px;
    height: 82px;
    padding: 3px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
}

.login-logo strong,
.login-logo small {
    display: block;
}

.login-logo strong {
    color: var(--dar-green-900);
    font-size: 24px;
    line-height: 1.15;
}

.login-logo small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.login-box-body {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(31, 47, 57, .1);
}

.login-box-msg {
    margin: 0 0 23px;
    padding: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.form-label {
    margin-bottom: 6px;
    color: #34434d;
    font-size: 12px;
    font-weight: 800;
}

.input-group-text,
.form-control {
    min-height: 43px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd4d9;
    box-shadow: none;
}

.input-group-text {
    min-width: 43px;
    justify-content: center;
    color: var(--dar-green-700);
    background: #f4f8f5;
    border-right: 0;
}

.form-control:focus {
    background: #fff;
    border-color: var(--dar-green-700);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, .13);
}

.input-group:focus-within .input-group-text {
    border-color: var(--dar-green-700);
}

.input-group .invalid-feedback {
    width: 100%;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 5px 0 20px;
    font-size: 12px;
}

.login-options a {
    color: var(--dar-green-700);
    font-weight: 700;
}

.form-check-input:checked {
    background-color: var(--dar-green-700);
    border-color: var(--dar-green-700);
}

.btn {
    min-height: 43px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
}

.btn-block { width: 100%; }
.btn-primary { color: #fff; background: var(--dar-green-700); border-color: var(--dar-green-700); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--dar-green-900); border-color: var(--dar-green-900); }

.alert {
    padding: 11px 13px;
    border-radius: 5px;
    font-size: 12px;
}

.alert-danger { color: #8c2b23; background: #fff0ee; border-color: #f2c8c3; }

.login-security-note {
    margin: 18px 0 0;
    color: #7a8790;
    font-size: 11px;
    text-align: center;
}

.login-security-note i { margin-right: 4px; color: var(--dar-green-700); }
.login-footer { margin: 15px 0 0; color: #7b878f; font-size: 11px; text-align: center; }

.password-help-card { text-align: center; }
.help-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--dar-green-700); background: #e8f5ec; border-radius: 50%; font-size: 22px; }
.password-help-card h2 { margin: 0 0 9px; color: var(--text); font-size: 22px; font-weight: 700; }
.password-help-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { min-height: auto; padding: 32px 24px; }
    .login-brand-content h1 { font-size: 31px; }
    .login-form-panel { padding: 28px 18px 36px; }
}

@media (max-width: 480px) {
    .login-brand-panel { padding: 26px 20px; }
    .login-form-panel { padding: 24px 14px 30px; }
    .login-box-body { padding: 22px 18px; }
    .login-logo strong { font-size: 21px; }
}
