:root {
    --awra-ink: #0f172a;
    --awra-muted: #64748b;
    --awra-border: #e2e8f0;
    --awra-surface: #ffffff;
    --awra-surface-soft: #f8fafc;
    --awra-primary: #1d4ed8;
    --awra-primary-strong: #0f172a;
    --awra-accent: #0ea5e9;
}

body.awra-public {
    background: #f2f5fb;
    color: var(--awra-ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.awra-public .page-wrapper {
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.08), transparent 40%),
        #f2f5fb;
}

.awra-public-content {
    width: 100%;
    padding: 0;
}

.awra-public-content > .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.awra-public-content .landing {
    max-width: none;
    margin: 0;
    padding: 0;
}

.awra-page-hero {
    border-radius: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #0ea5e9 100%);
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.awra-page-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
}

.awra-page-hero p {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
}

.awra-page-hero .btn {
    border-radius: 999px;
}

/* Auth + MFA */
.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 100vh;
    padding: 32px;
    gap: 24px;
}

.auth-left {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #0f766e 100%);
    color: #f8fafc;
    border-radius: 28px;
    padding: 56px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.auth-left::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent 60%);
    pointer-events: none;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.tagline {
    font-size: 16px;
    margin-bottom: 18px;
    color: rgba(226, 232, 240, 0.8);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    margin: 10px 0;
    font-size: 14px;
    color: rgba(226, 232, 240, 0.85);
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-size: 18px;
    line-height: 1;
}

.auth-right {
    background: #ffffff;
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.auth-right h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--awra-primary);
    margin-bottom: 8px;
}

.auth-right .login-form,
.auth-right form {
    display: grid;
    gap: 16px;
}

.auth-right .form-group {
    display: grid;
    gap: 6px;
}

.auth-right label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.auth-right input,
.auth-right select,
.auth-right textarea {
    width: 90% !important;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--awra-border);
    background: #f8fafc;
    color: #0f172a;
}

.auth-right input:focus,
.auth-right select:focus,
.auth-right textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.auth-right button,
.auth-right .btn {
    background: var(--awra-primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.auth-full-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-right .btn-outline {
    background: transparent;
    border: 1px solid var(--awra-border);
    color: var(--awra-ink);
}

.auth-right .text-muted,
.auth-right .auth-helper {
    color: #64748b;
}

.auth-right ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    gap: 8px;
}

.auth-right ul li {
    padding: 8px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    font-family: "SF Mono", "JetBrains Mono", monospace;
    font-size: 12px;
}

.auth-right-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--awra-border);
    background: #f8fafc;
}

.auth-right-panel h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.auth-right-panel p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.auth-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.auth-panel-item {
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    font-size: 12px;
    color: #475569;
}

.policy-form-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.policy-form-group input[type="checkbox"]{
    width: auto !important;
}

.policy-form-group label {
    margin: 0;
    font-weight: 500;
    color: #475569;
}

.auth-right .change-plan-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--awra-border);
    text-align: center;
    color: #64748b;
}

.auth-right .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.auth-right .change-plan-section .btn {
    margin-top: 10px;
}

.auth-top-card {
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    position: relative;
    overflow: hidden;
}

.auth-top-card h2 {
    color: #f8fafc;
    margin-top: 10px;
}

.auth-top-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.auth-content-padding {
    --auth-pad-x: 36px;
    padding: 28px var(--auth-pad-x) 36px;
}

.auth-content-padding .change-plan-section {
    margin-left: calc(-1 * var(--auth-pad-x));
    margin-right: calc(-1 * var(--auth-pad-x));
    /* padding: 18px var(--auth-pad-x) 0; */
}

.auth-right > :not(.auth-top-card) {
    width: auto;
}

.auth-top-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-top-card .auth-helper {
    color: rgba(226, 232, 240, 0.8);
}

.auth-trust-strip {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.manual-code-container {
    background: #f8fafc;
    border: 1px solid var(--awra-border);
    padding: 12px 16px;
    border-radius: 14px;
    margin: 16px 0;
}

.manual-code {
    font-family: "SF Mono", "JetBrains Mono", monospace;
    font-size: 14px;
    background: #0f172a;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 8px;
}

.mfa-form button {
    width: 100%;
}

/* Generic public cards */
.awra-public-card {
    background: #ffffff;
    border: 1px solid var(--awra-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.awra-public-panel {
    background: #ffffff;
    border: 1px solid var(--awra-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.awra-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.awra-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

/* Confirmation modal (public layout) */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 60px auto;
    max-width: 560px;
}

.modal-content {
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.modal-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 1.25rem;
    font-size: 0.95rem;
    color: #334155;
    background: #f8fafc;
}

.modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    background: #fff;
}

.modal-backdrop.show,
.awra-bootstrap-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1040;
}

@media (max-width: 960px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-left {
        padding: 36px;
    }

    .auth-right {
        padding: 36px;
    }
}
