/* WiSpot Hotspot - Estilos Globais */

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

body {
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.screen { 
    display: none; 
    width: 100%;
    height: 100vh;
}
.screen.active { 
    display: flex; 
}

/* ==================== PROPAGANDA ==================== */
#propaganda-screen {
    position: relative;
    background: #000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    --propaganda-bg: none;
}

#propaganda-screen::before {
    content: "";
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-image: var(--propaganda-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(80px) brightness(0.75) saturate(1.2);
    z-index: 1;
}

.propaganda-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    background: #000;
    z-index: 2;
}
.propaganda-slide.active { 
    opacity: 1; 
}

.propaganda-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.propaganda-bar {
    height: 100%;
    background: #8809ed;
    width: 0%;
    transition: width 0.1s linear;
}

.propaganda-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}
.propaganda-skip:hover {
    background: rgba(255,255,255,1);
}

.propaganda-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

/* ==================== LOGIN/CADASTRO ==================== */
.auth-screen {
    background-color: #8809ed;
    background-image: url('../img_wispot/fundo_wispot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px 28px 28px 28px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.auth-logo { 
    width: 90px; 
    margin-bottom: 16px; 
}

.auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #181a1b;
    margin-bottom: 16px;
    line-height: 1.4;
}
.auth-title img { 
    max-width: 140px; 
    vertical-align: middle; 
}

.auth-form label {
    display: block;
    text-align: left;
    margin-bottom: 4px;
    margin-top: 10px;
    color: #333;
    font-weight: 600;
    font-size: 0.88rem;
}
.auth-form label:first-of-type {
    margin-top: 0;
}

.auth-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 0px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.93rem;
    transition: border-color 0.3s;
}
.auth-input:focus {
    outline: none;
    border-color: #8809ed;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8809ed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: all 0.3s;
}
.auth-btn:hover {
    background: linear-gradient(135deg, #7308d4 0%, #9745de 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 9, 237, 0.3);
}

.auth-link {
    display: inline-block;
    margin-top: 12px;
    color: #8809ed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.3s;
}
.auth-link:hover {
    color: #a855f7;
}

.auth-footer {
    margin-top: 14px;
    color: #666;
    font-size: 0.82rem;
}

/* ==================== TERMOS E VERIFICAÇÃO ==================== */
.termos-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 6px 0;
    text-align: left;
}

.termos-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.termos-check label {
    margin: 0 !important;
    font-size: 0.82rem;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}

.phone-verify {
    display: flex;
    gap: 6px;
    margin-bottom: 0px;
}

.phone-verify .auth-input {
    flex: 1;
}

.btn-codigo {
    padding: 10px 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-codigo:hover {
    background: #45a049;
}

.btn-codigo:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==================== TELA DE SUCESSO ==================== */
.sucesso-card {
    text-align: center;
    padding: 50px 32px;
}

.sucesso-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.sucesso-title {
    font-size: 1.5rem;
    color: #181a1b;
    margin-bottom: 12px;
    font-weight: 700;
}

.sucesso-text {
    color: #666;
    font-size: 1rem;
    margin-bottom: 8px;
}

.sucesso-user {
    color: #8809ed;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .auth-logo {
        width: 80px;
        margin-bottom: 14px;
    }
    
    .auth-title {
        font-size: 1.1rem;
    }
    
    .auth-title img {
        max-width: 120px;
    }
    
    .propaganda-skip {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .auth-input {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .auth-card {
        max-width: 440px;
        padding: 30px 26px;
    }
}
