/* ==================== RESET E VARIÁVEIS GLOBAIS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body {
    background-color: #1a1a2e;
    color: #fff;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================== UTILITÁRIOS ==================== */
.hidden {
    display: none !important;
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================== BOTÕES ==================== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: #00a8ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0097e6;
}

.btn-success {
    background-color: #4cd137;
    color: #fff;
}

.btn-success:hover {
    background-color: #44bd32;
}

.btn-danger {
    background-color: #e84118;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c23616;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ==================== TELA DE AUTENTICAÇÃO ==================== */
#auth-screen {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fbc531;
    text-shadow: 2px 2px 0px #e1b12c;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 0.9rem;
    color: #dcdde1;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.auth-form h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #f5f6fa;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: #00a8ff;
}

.auth-form label {
    font-size: 0.85rem;
    color: #dcdde1;
    margin-top: 5px;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker input[type="color"] {
    appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: 2px solid #fff;
    border-radius: 50%;
}

.toggle-auth {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 10px;
    color: #dcdde1;
}

.toggle-auth a {
    color: #00a8ff;
    text-decoration: none;
    font-weight: bold;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(232, 65, 24, 0.2);
    border: 1px solid #e84118;
    color: #ff7675;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 15px;
}
