.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #f8fafc;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.24), transparent 38%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(30, 41, 59, 0.54)),
        url('img/megam1.png') center center / cover no-repeat fixed;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.74), rgba(30, 41, 59, 0.66));
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.auth-card.compact {
    max-width: 760px;
}

.auth-header {
    padding: 36px 36px 20px;
    text-align: center;
}

.auth-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin-bottom: 16px;
}

.auth-title {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0;
    color: #dbeafe;
    line-height: 1.6;
}

.auth-content {
    padding: 0 36px 36px;
}

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

.selection-card,
.plan-card {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.58), rgba(37, 99, 235, 0.18));
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.selection-card:hover,
.plan-card:hover,
.selection-card.active,
.plan-card.active {
    transform: translateY(-2px);
    border-color: rgba(103, 232, 249, 0.72);
    box-shadow: 0 18px 48px rgba(14, 165, 233, 0.24);
}

.selection-card input,
.plan-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.card-text {
    margin: 0;
    color: #dbeafe;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.section-block {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.46), rgba(14, 116, 144, 0.12));
    border: 1px solid rgba(125, 211, 252, 0.16);
}

.section-title {
    margin: 0 0 18px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #67e8f9;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font: inherit;
    box-sizing: border-box;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(103, 232, 249, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.field-group select option {
    color: #0f172a;
}

.field-group textarea {
    min-height: 92px;
    resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #cbd5e1;
}

.cta-row,
.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
    color: #082f49;
    background: linear-gradient(135deg, #67e8f9, #38bdf8 52%, #818cf8);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3);
}

.secondary-btn {
    color: #f8fafc;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.ghost-btn {
    color: #e0f2fe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-1px);
}

.status-message {
    display: none;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.status-message.visible {
    display: block;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.28);
    color: #bbf7d0;
}

.helper-text {
    margin: 10px 0 0;
    color: #dbeafe;
    line-height: 1.6;
}

.forgot-password-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.text-btn {
    align-self: flex-start;
    border: 0;
    padding: 0;
    background: transparent;
    color: #67e8f9;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.inline-recovery-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(103, 232, 249, 0.16);
}

.inline-actions {
    display: flex;
    justify-content: flex-start;
}

.consent-block {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(125, 211, 252, 0.14);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #dbeafe;
    line-height: 1.7;
    cursor: pointer;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #38bdf8;
    flex: 0 0 auto;
}

.consent-text {
    font-size: 0.96rem;
}

.consent-link {
    color: #67e8f9;
    font-weight: 700;
    text-decoration: underline;
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hidden {
    display: none !important;
}

.payment-copy {
    display: grid;
    gap: 18px;
}

.payment-key {
    font-size: 1.05rem;
    font-weight: 700;
    color: #7dd3fc;
    word-break: break-word;
}

.payment-details {
    margin: 0;
    padding-left: 18px;
    color: #e0f2fe;
    line-height: 1.7;
}

.qr-shell {
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.5), rgba(37, 99, 235, 0.12));
    border-radius: 22px;
    border: 1px solid rgba(125, 211, 252, 0.16);
}

#pix-qrcode {
    background: #ffffff;
    padding: 10px;
    border-radius: 18px;
}

@media (max-width: 720px) {
    .auth-header,
    .auth-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .cta-row,
    .link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn,
    .ghost-btn {
        text-align: center;
    }

    .consent-label {
        gap: 10px;
    }

    .consent-text {
        font-size: 0.92rem;
    }
}
