:root {
    --auth-brand: #ff6200;
    --auth-brand-dark: #c44a00;
    --auth-ink: #1c1917;
    --auth-muted: #6b7280;
    --auth-font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: var(--auth-font);
    color: var(--auth-ink);
    background: #fff4ec;
    -webkit-font-smoothing: antialiased;
}

body,
form.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

form.auth-form {
    padding: 20px 12px;
}

.auth-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-shell,
.auth-shell-2col {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(196, 74, 0, 0.08);
}

.auth-aside,
.auth-brand,
.auth-mark {
    display: none;
}

.auth-copyright {
    margin: 14px 0 0;
    padding: 0 8px;
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, #ff8533 0%, #ff6200 58%, #c44a00 100%);
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.auth-hero::before {
    width: 150px;
    height: 150px;
    right: -28px;
    top: -58px;
}

.auth-hero::after {
    width: 120px;
    height: 120px;
    right: 42px;
    top: -18px;
}

.auth-hero h1,
.auth-panel > h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-hero p,
.auth-lead {
    position: relative;
    z-index: 1;
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
}

.auth-panel {
    padding: 22px 22px 24px;
}

.auth-panel > h1 {
    color: var(--auth-ink);
    display: none;
}

.auth-panel .auth-lead {
    display: none;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin: 0 0 7px 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.auth-input-wrap {
    display: block;
    padding: 0;
    border: none;
    background: none;
}

.auth-input-wrap:focus-within input {
    box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.18);
}

.auth-input-wrap.is-invalid input {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16);
}

.auth-input-wrap i {
    display: none;
}

.auth-input-wrap input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    outline: none !important;
    background: #fff !important;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    color: #111827;
}

.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #111827;
    box-shadow: 0 0 0 1000px #fff inset !important;
    border: 1px solid #d1d5db !important;
    caret-color: #111827;
}

.auth-input-wrap input::placeholder {
    color: #9aa3af;
    font-weight: 400;
    font-size: 0.8rem;
}

.auth-alert,
.auth-success {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-alert {
    background: #fef2f2;
    color: #b91c1c;
}

.auth-success {
    background: #ecfdf5;
    color: #047857;
}

.auth-field-error {
    display: block;
    margin: 6px 0 0 4px;
    font-size: 0.68rem;
    color: #e11d48;
}

.auth-submit,
a.auth-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    background: #ff6200;
}

.auth-submit:hover,
a.auth-submit:hover {
    background: #c44a00;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-footer {
    margin: 12px 0 0;
}

.auth-footer a,
.auth-ghost {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    background: #fff;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-ghost:hover {
    background: #fff8f3;
}

.auth-secondary {
    margin-top: 10px;
}

.auth-secondary a {
    color: var(--auth-muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
}
