:root {
    --wine: #681d40;
    --dark: #391021;
    --gold: #d6ad62;
    --ink: #281f24;
    --muted: #746970;
    --line: #e7dfe4
}

.submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 57px;
    margin-top: 16px;
    color: #fff;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #57162f, #81264e);
    box-shadow: 0 12px 25px #641d3f33;
    font-weight: 800;
    cursor: pointer
}

.submit:hover {
    transform: translateY(-1px)
}

.submit i {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff55;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

.submit.loading i {
    display: block
}

.submit.loading b {
    display: none
}

.support {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:900px) {
    .auth-shell {
        display: block
    }

    .brand-panel {
        display: none
    }

    .form-panel {
        min-height: 100svh;
        padding: 24px
    }

    .mobile-brand {
        display: block;
        margin-bottom: 40px;
        color: var(--wine);
        font-size: 20px
    }

    .mobile-brand:first-letter {
        color: var(--gold);
        font-size: 30px
    }
}

@media(max-width:480px) {
    .form-panel {
        align-items: start;
        padding: 30px 18px
    }

    .login-card header {
        margin-bottom: 22px
    }

    .control input {
        height: 54px
    }
}

.alert-error,
.alert-success {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px
}

.alert-error {
    color: #862c3b;
    border-color: #edc3ca;
    background: #fff0f2
}

.alert-success {
    color: #176042;
    border-color: #bce3d1;
    background: #effbf5
}

.alert-error b,
.alert-success b {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #9c3042;
    font-size: 11px
}

.alert-success b {
    background: #257453
}

form {
    display: grid;
    gap: 9px
}

label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700
}

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

.control>span {
    position: absolute;
    left: 17px;
    color: #93878e;
    font-weight: 700
}

.control input {
    width: 100%;
    height: 56px;
    padding: 0 55px 0 48px;
    color: var(--ink);
    outline: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: .18s
}

.control input:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 4px #681d4018
}

.control button {
    position: absolute;
    right: 10px;
    padding: 8px;
    color: var(--wine);
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer
}

.control button:hover {
    background: #f6e9ef
}

* {
    box-sizing: border-box
}

html,
body {
    min-height: 100%
}

body {
    margin: 0;
    color: var(--ink);
    background: #faf7f9;
    font-family: Inter, Arial, sans-serif
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, .95fr) minmax(470px, 1.05fr);
    min-height: 100vh
}

.brand-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #351021, #76274d)
}

.brand-panel:after {
    position: absolute;
    right: -170px;
    bottom: -260px;
    width: 600px;
    height: 600px;
    border: 1px solid #ffffff1c;
    border-radius: 50%;
    box-shadow: 0 0 0 65px #ffffff08, 0 0 0 130px #ffffff06;
    content: ''
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 76px)
}

.brand {
    align-self: flex-start;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none
}

.brand:first-letter {
    color: var(--gold);
    font-size: 31px
}

.brand-copy {
    max-width: 610px;
    margin: auto 0;
    padding: 60px 0
}

.eyebrow {
    margin: 0 0 12px;
    color: #8b2b53;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase
}

.brand-copy .eyebrow {
    color: #edcf91
}

.brand-copy h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.05;
    letter-spacing: -.04em
}

.brand-copy>p:last-child {
    max-width: 560px;
    margin: 26px 0 0;
    color: #ffffffbd;
    font-size: 17px;
    line-height: 1.75
}

.trust-note {
    margin: 0;
    color: #ffffffb8;
    font-size: 13px
}

.form-panel {
    display: grid;
    min-height: 100vh;
    padding: 32px;
    place-items: center;
    background: #faf8f9
}

.login-card {
    width: min(100%, 470px)
}

.mobile-brand {
    display: none
}

.login-card header {
    margin-bottom: 28px
}

.login-card header h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 39px);
    line-height: 1.15
}

.login-card header>p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6
}