/* Configurações Gerais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f1115;
    color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container de Autenticação (Card Glassmorphism) */
.auth-container {
    background: rgba(22, 26, 34, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-header .logo span {
    color: #ff5e3a;
}

.auth-header p {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Abas Alternadoras (Tabs) */
.tabs {
    display: flex;
    background: #1c202a;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #ff5e3a;
    color: #ffffff;
}

/* Formulários e Inputs */
.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.input-row .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
}

.input-group .highlight-label {
    color: #ff5e3a;
    font-weight: 600;
}

.input-group input, .input-group select {
    background: #1c202a;
    border: 1px solid #2e3545;
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus, .input-group select:focus {
    border-color: #ff5e3a;
    box-shadow: 0 0 0 2px rgba(255, 94, 58, 0.15);
}

.input-group small {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.hidden {
    display: none !important;
}

/* Botão Principal */
.btn-primary {
    background: #ff5e3a;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #e04f2f;
}

/* --- BOTTOM SHEET EM DOM (Substitutos Elegantes do Alert) --- */
.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #161a22;
    border-top: 2px solid #2e3545;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px;
    z-index: 1000;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.bottom-sheet.active {
    bottom: 0;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
}

.bottom-sheet .bar {
    width: 40px;
    height: 4px;
    background: #2e3545;
    border-radius: 2px;
    margin: 0 auto 16px auto;
}

.bottom-sheet h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bottom-sheet p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Variações visuais da Bottom Sheet */
.sheet-success h3 { color: #10b981; }
.sheet-error h3 { color: #ef4444; }
.sheet-warning h3 { color: #f59e0b; }

.sheet-close-btn {
    background: #1c202a;
    color: #ffffff;
    border: 1px solid #2e3545;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}