* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 32, 50, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(10, 25, 47, 0.4) 0%, transparent 50%),
        #000000;
}

.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.4), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,.35), transparent),
        radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,.2), transparent),
        radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 50% 85%, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.35), transparent),
        radial-gradient(1px 1px at 35% 50%, rgba(255,255,255,.2), transparent),
        radial-gradient(1.5px 1.5px at 5% 90%, rgba(255,255,255,.5), transparent),
        radial-gradient(1.5px 1.5px at 60% 5%, rgba(255,255,255,.45), transparent),
        radial-gradient(1.5px 1.5px at 95% 60%, rgba(255,255,255,.4), transparent);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 220px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeDown .8s ease forwards;
}

.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.input-wrap {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
    outline: none;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 5px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.erro {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* SPINNER / LOADING */
.spinner-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* STEP INDICATOR */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.step.active {
    border-color: #ffffff;
    color: #000000;
    background: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.step.done {
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* CHECK / CONCLUIDO */
.check-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #ffffff;
    animation: scaleIn 0.5s ease;
}

.check-icon svg {
    width: 32px;
    height: 32px;
}

.msg-final {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 12px;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeUp 0.5s ease forwards;
}

.fade-out {
    animation: fadeOutDown 0.3s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-15px); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .container { padding: 16px; }
    .card { padding: 28px 20px; }
    .logo { width: 180px; margin-bottom: 24px; }
    input[type="text"], input[type="password"] { font-size: 1.1rem; padding: 14px 16px; }
}
