*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background-color: #070b16;
}

.auth-viewport {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #070b16 url('../img/bg-mining.svg') center bottom / cover no-repeat fixed;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.35), rgba(7, 11, 22, 0.78));
    pointer-events: none;
    z-index: 0;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.brand-tagline {
    font-size: 0.85rem;
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 28px 26px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.55);
}

.card-head {
    margin-bottom: 20px;
}

.card-head h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.first-admin-banner {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-group input:focus {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.btn-primary {
    width: 100%;
    padding: 13px 16px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32);
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.4);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.feedback {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 500;
}

.feedback.erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feedback.sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.hidden {
    display: none !important;
}

.auth-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.88rem;
    color: #475569;
}

.link-btn {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 4px;
}

.link-btn:hover {
    text-decoration: underline;
    color: #0369a1;
}

.support-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.support-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}

.support-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: #f59e0b;
}

.support-pill.whatsapp {
    border-color: rgba(34, 197, 94, 0.5);
}

.support-pill.instagram {
    border-color: rgba(236, 72, 153, 0.5);
}

.lgpd-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .login-card {
        padding: 22px 18px;
    }

    .brand-logo {
        height: 46px;
    }
}
