/*
|--------------------------------------------------------------------------
| Account Login Page
|--------------------------------------------------------------------------
|
| Used by account/login.php only. The login page uses the public site
| layout, so panel.css is not loaded there.
|
*/

.account-auth-page {
    --auth-primary: #e49b12;
    --auth-primary-dark: #d59111;
    --auth-cream: #fff8ee;
    --auth-text: #33271f;
    --auth-muted: #74675d;
    position: relative;
    min-height: calc(100vh - 140px);
    padding: 112px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(255, 139, 0, 0.12), transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(255, 139, 0, 0.08), transparent 26%),
        #fffdf9;
}

.account-auth-page::before,
.account-auth-page::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 139, 0, 0.12);
    border-radius: 50%;
}

.account-auth-page::before {
    width: 340px;
    height: 340px;
    top: -190px;
    right: -110px;
}

.account-auth-page::after {
    width: 260px;
    height: 260px;
    bottom: -150px;
    left: -100px;
}

.account-auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
    align-items: center;
    gap: 72px;
    max-width: 1080px;
    margin: 0 auto;
}

.account-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    color: var(--auth-primary-dark);
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 139, 0, 0.09);
    border: 1px solid rgba(255, 139, 0, 0.16);
    border-radius: 999px;
}

.account-auth-intro h1 {
    max-width: 620px;
    margin: 0;
    color: var(--auth-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.account-auth-lead {
    max-width: 590px;
    margin: 24px 0 32px;
    color: var(--auth-muted);
    font-size: 17px;
    line-height: 1.75;
}

.account-auth-benefits {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.account-auth-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-auth-benefit-icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    color: var(--auth-primary);
    font-size: 19px;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(255, 139, 0, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(51, 39, 31, 0.06);
}

.account-auth-benefit strong,
.account-auth-benefit span {
    display: block;
}

.account-auth-benefit strong {
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 800;
}

.account-auth-benefit span {
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.account-auth-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(51, 39, 31, 0.09);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(51, 39, 31, 0.12);
}

.account-auth-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.account-auth-card-icon {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    color: #ffffff;
    font-size: 22px;
    place-items: center;
    background: var(--auth-primary);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(255, 139, 0, 0.25);
}

.account-auth-card-header h2 {
    margin: 0;
    color: var(--auth-text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 800;
}

.account-auth-card-header p {
    margin: 5px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.account-auth-step,
.account-form-field {
    display: grid;
    gap: 16px;
}

.account-form-field {
    gap: 8px;
}

.account-form-field label {
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 800;
}

.account-input-wrap {
    position: relative;
}

.account-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--auth-primary);
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.account-input-wrap .account-form-control {
    padding-left: 48px;
}

.account-form-control {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    color: var(--auth-text);
    font-size: 15px;
    background: #ffffff;
    border: 1px solid rgba(51, 39, 31, 0.15);
    border-radius: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(255, 139, 0, 0.11);
}

.account-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.09);
}

.account-field-help {
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.55;
}

.account-primary-button,
.account-secondary-button,
.account-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.account-primary-button {
    width: 100%;
    color: #ffffff;
    background: var(--auth-primary);
    border: 1px solid var(--auth-primary);
    box-shadow: 0 12px 24px rgba(255, 139, 0, 0.2);
}

.account-primary-button:hover {
    background: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
    transform: translateY(-1px);
}

.account-auth-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.account-secondary-button {
    color: var(--auth-text);
    background: var(--auth-cream);
    border: 1px solid rgba(255, 139, 0, 0.16);
}

.account-text-button {
    color: var(--auth-muted);
    background: transparent;
    border: 0;
}

.account-primary-button:disabled,
.account-secondary-button:disabled,
.account-text-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.account-code-sent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    color: #245b3a;
    background: #effaf3;
    border: 1px solid rgba(25, 135, 84, 0.15);
    border-radius: 13px;
}

.account-code-sent-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    font-size: 17px;
    place-items: center;
    background: #ffffff;
    border-radius: 50%;
}

.account-code-sent strong,
.account-code-sent span {
    display: block;
}

.account-code-sent strong {
    font-size: 14px;
}

.account-code-sent span {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.5;
}

.account-code-input {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-align: center;
}

.account-auth-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 13px 14px;
    color: #695226;
    font-size: 13px;
    line-height: 1.55;
    background: #fff8e5;
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 11px;
}

.account-auth-message.is-error {
    color: #842029;
    background: #fff2f3;
    border-color: rgba(220, 53, 69, 0.18);
}

.account-auth-message.is-success {
    color: #245b3a;
    background: #effaf3;
    border-color: rgba(25, 135, 84, 0.16);
}

.account-auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 20px;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(51, 39, 31, 0.08);
}

.account-auth-security i {
    color: var(--auth-primary);
}

@media (max-width: 991.98px) {
    .account-auth-page {
        padding: 96px 0 64px;
    }

    .account-auth-layout {
        grid-template-columns: 1fr;
        gap: 44px;
        max-width: 680px;
    }

    .account-auth-intro {
        text-align: center;
    }

    .account-auth-intro h1,
    .account-auth-lead,
    .account-auth-benefits {
        margin-left: auto;
        margin-right: auto;
    }

    .account-auth-benefit {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .account-auth-page {
        padding: 82px 0 36px;
    }

    .account-auth-intro h1 {
        font-size: 38px;
    }

    .account-auth-card {
        padding: 22px 18px;
        border-radius: 19px;
    }

    .account-auth-actions {
        grid-template-columns: 1fr;
    }
}

/* Centered login layout */
.account-auth-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 72px 0;
}

.account-auth-page > .container {
    width: 100%;
}

.account-auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.account-auth-card {
    width: min(100%, 480px);
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .account-auth-page {
        min-height: calc(100vh - 110px);
        padding: 56px 0;
    }

    .account-auth-layout {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .account-auth-page {
        min-height: calc(100vh - 90px);
        padding: 32px 0;
    }

    .account-auth-card {
        width: 100%;
    }
}

/* Cloudflare Turnstile widget (only visible when an interaction is needed) */
.account-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.account-turnstile:empty {
    margin-top: 0;
}

/* Hidden while the verification code is entered (see login.js). */
.account-turnstile[hidden] {
    display: none !important;
}
