:root {
    --navy: #1b3a6b;
    --navy-deep: #12284d;
    --gold: #d4a017;
    --gold-soft: #f6e7b8;
    --cream: #f4efe4;
    --ink: #1b2437;
    --muted: #66748d;
    --line: #e2d9c8;
}

* { box-sizing: border-box; }

html,
body {
    height: 100%;
}

body.fr-login {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--cream);
    color: var(--ink);
}

.fr-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
}

.fr-aside {
    position: relative;
    overflow: hidden;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(212, 160, 23, 0.28), transparent 32%),
        linear-gradient(155deg, #1b3a6b 0%, #12284d 72%);
}

.fr-aside::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -160px;
    border-radius: 50%;
    border: 24px solid rgba(212, 160, 23, 0.16);
}

.fr-kicker,
.fr-aside h1,
.fr-aside p,
.fr-tiles,
.fr-aside-foot {
    position: relative;
    z-index: 1;
}

.fr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.16);
    border: 1px solid rgba(212, 160, 23, 0.4);
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fr-aside h1 {
    margin: 26px 0 14px;
    max-width: 460px;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fr-aside p {
    max-width: 420px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.fr-tiles {
    display: grid;
    gap: 10px;
    max-width: 360px;
}

.fr-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
}

.fr-tile i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--navy-deep);
}

.fr-aside-foot {
    margin-top: 40px;
    color: rgba(246, 231, 184, 0.7);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fr-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 48px;
}

.fr-card-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.fr-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin: 0 0 14px;
    padding: 0 14px 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eadfcd;
    box-shadow: 0 6px 16px rgba(27, 58, 107, 0.06);
    color: var(--navy) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.fr-back i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
}

.fr-back:hover,
.fr-back:focus {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff !important;
    text-decoration: none !important;
}

.fr-back:hover i,
.fr-back:focus i {
    background: var(--gold);
    color: var(--navy-deep);
}

.fr-card {
    width: 100%;
    padding: 32px 32px 28px;
    background: #fff;
    border: 1px solid #eadfcd;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(27, 58, 107, 0.08);
}

.fr-logo {
    margin-bottom: 16px;
}

.fr-logo img,
.fr-card #Image1 {
    max-width: 148px;
    height: auto;
}

.fr-card h2 {
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
}

.fr-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.fr-field {
    margin-bottom: 14px;
}

.fr-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
}

.fr-input {
    position: relative;
}

.fr-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -7px;
    color: #b59a5a;
    font-size: 14px;
}

.fr-input .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 10px 12px 10px 40px;
    box-shadow: none;
    font-size: 14px;
    background: #fbf8f1;
}

.fr-input .form-control:focus {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 58, 107, 0.12);
}

.fr-btn,
input.fr-btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    -webkit-appearance: none;
    appearance: none;
}

.fr-btn:hover,
input.fr-btn:hover,
.fr-btn:focus,
input.fr-btn:focus {
    background: #c09010 !important;
    color: #fff !important;
}

.fr-help {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 900px) {
    .fr-shell {
        grid-template-columns: 1fr;
    }

    .fr-aside {
        padding: 28px 22px 24px;
        min-height: auto;
    }

    .fr-aside h1 {
        font-size: 28px;
        margin-top: 16px;
    }

    .fr-aside p,
    .fr-tiles {
        margin-bottom: 16px;
    }

    .fr-aside-foot {
        margin-top: 12px;
    }

    .fr-panel {
        padding: 18px 16px 32px;
    }

    .fr-back {
        margin-bottom: 12px;
    }
}
