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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: #050d09;
    position: relative;
    overflow: hidden;
}

/* ── Animated gradient orbs ── */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
    top: -200px;
    left: -100px;
    animation: orbFloat1 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.12), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: orbFloat2 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -30px) scale(1.15); }
}

/* ── Dot grid pattern ── */
.login-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: drift 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ── Card float entrance ── */
@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Back Link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 24px;
    left: 24px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
    transition: color 0.3s;
}

.back-link:hover { color: #fff; }
.back-link i { font-size: 18px; }

/* ── Card ── */
.card {
    background: rgba(255, 255, 255, 0.04);
    -webkit-

    padding: 70px 46px 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #fff;
    width: 440px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 120px rgba(16, 185, 129, 0.04);
    animation: cardFloat 0.8s ease-out;
}

/* ── Logo ── */
.card-logo {
    text-align: center;
    margin-bottom: 32px;
}

.card-logo img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    border-radius: 22px;
    margin: -50px auto -2px;
    display: block;
    filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.25));
    position: relative;
    z-index: 2;
}

.card-logo h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 30%, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-logo p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Form Section ── */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

/* ── Input Box ── */
.input-box {
    position: relative;
    margin-bottom: 18px;
}

.input-box input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #fff;
    padding: 0 44px 0 18px;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
    outline: none;
}

.input-box input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12),
                0 0 0 3px rgba(16, 185, 129, 0.06);
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-box i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.input-box input:focus + i {
    color: #10b981;
}

/* ── Remember Row ── */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 22px;
}

.remember-row label {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.remember-row label:hover { color: #fff; }

.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #10b981;
    cursor: pointer;
}

.remember-row a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.remember-row a:hover { color: #10b981; }

/* ── Submit Button ── */
.btn-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    background: linear-gradient(135deg, #10b981, #059669);
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.45),
                0 0 60px rgba(16, 185, 129, 0.15);
}

.btn-submit:hover::before { left: 100%; }
.btn-submit:active { transform: translateY(0); }

/* ── Register Link ── */
.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.register-link p {
    color: rgba(255, 255, 255, 0.45);
}

.register-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
}

.register-link a:hover {
    color: #34d399;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* ── Pending / Blocked Screen ── */
.pending-screen,
.blocked-screen {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.pending-screen.show,
.blocked-screen.show {
    display: block;
    animation: cardFloat 0.5s ease-out;
}

.pending-screen > i,
.blocked-screen > i {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.pending-screen > i { color: #fdcb6e; }
.blocked-screen > i { color: #e17055; }

.pending-screen h2,
.blocked-screen h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pending-screen p,
.blocked-screen p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 8px;
}

.btn-back {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
    background: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── Toast ── */
.toast {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(10, 20, 15, 0.95);
    -webkit-

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 16px 20px;
    max-width: 380px;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease-out;
}

.toast.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast i {
    font-size: 24px;
    flex-shrink: 0;
}

.toast i.success { color: #10b981; }
.toast i.warning { color: #fdcb6e; }
.toast i.error { color: #e17055; }

.toast-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Responsividade ── */
@media (max-width: 480px) {
    .card {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        padding: 0 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        box-shadow: none;
    }

    .back-link {
        top: max(16px, env(safe-area-inset-top, 16px));
    }

    .card-logo {
        margin-bottom: 36px;
    }

    .card-logo img {
        height: 56px;
        width: 56px;
    }

    .card-logo h1 {
        font-size: 26px;
    }

    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
