/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    overflow: hidden;
}

/* ---------------------------------------------------------
   LEFT VISUAL
   --------------------------------------------------------- */

.login-visual {
    position: relative;
    min-height: 100vh;
    background: #0a0e1a;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 56px;
}

/* ONLY the dial SVG should be large */
.dial-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(620px, 70vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.95;
}

.dial-stage svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------------------------------------------------------
   BRAND
   --------------------------------------------------------- */

.brand {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    display: block;
    flex: 0 0 32px;
}

.brand-name {
    font-family: "Fraunces", serif;
    font-size: 22px;
    line-height: 1.1;
    color: #ffffff;
}

.brand-tag {
    margin-top: 4px;
    color: #d4af37;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   HEADLINE
   --------------------------------------------------------- */

.headline {
    position: relative;
    z-index: 5;
    max-width: 650px;
}

.headline h1 {
    margin: 0 0 14px;
    font-family: "Fraunces", serif;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.headline p {
    margin: 0;
    color: #8d99b8;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

/* ---------------------------------------------------------
   RIGHT FORM PANEL
   --------------------------------------------------------- */

.login-form-panel {
    min-height: 100vh;
    background: #f8f7f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-form-card {
    width: 100%;
    max-width: 460px;
}

.login-form-card h2 {
    margin: 0;
    color: #101828;
    font-family: "Fraunces", serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 600;
}

.login-form-card .sub {
    margin-top: 8px;
    margin-bottom: 34px;
    color: #667085;
    font-size: 15px;
}

/* ---------------------------------------------------------
   FIELDS
   --------------------------------------------------------- */

.axiom-field {
    margin-bottom: 22px;
}

.axiom-field > label {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.axiom-input-group input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d8d3c7;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #101828;
    font-size: 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.axiom-input-group input:focus {
    border-color: #b69224;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

/* ---------------------------------------------------------
   REMEMBER ROW
   --------------------------------------------------------- */

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 28px;
}

.remember-row a {
    color: #9b7610;
    text-decoration: none;
}

.remember-row a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.btn-vault {
    position: relative;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: #090e1a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.btn-vault:hover {
    transform: translateY(-1px);
}

.btn-vault:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---------------------------------------------------------
   ALERT
   --------------------------------------------------------- */

.login-alert {
    display: none;
    margin-bottom: 22px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.login-alert.error {
    background: #fbe9e6;
    color: #c84d3d;
}

.login-alert.success {
    background: #e7f5eb;
    color: #18794e;
}

/* ---------------------------------------------------------
   FIELD ERRORS
   --------------------------------------------------------- */

.field-error {
    display: none;
    margin-top: 6px;
    color: #c84d3d;
    font-size: 12px;
}

.axiom-input-group.is-invalid input {
    border-color: #c84d3d;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 360px;
        padding: 32px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 40px 24px;
    }

    .headline h1 {
        font-size: 36px;
    }

    .dial-stage {
        width: 420px;
    }
}

@media (max-width: 520px) {
    .login-visual {
        min-height: 300px;
        padding: 24px;
    }

    .login-form-panel {
        padding: 32px 20px;
    }

    .headline h1 {
        font-size: 30px;
    }

    .brand-mark {
        width: 32px !important;
        height: 32px !important;
    }
}