* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0e1a;
    position: relative;
    overflow: hidden;
}

/* Fundo com gradiente animado */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(72, 49, 212, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 183, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(72, 49, 212, 0.08) 0%, transparent 40%),
        #0a0e1a;
    z-index: 0;
}

/* Container principal */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    margin: 0 auto;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 40px 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Logo Wi-Fi */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.wifi-icon {
    width: 56px;
    height: 56px;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    padding: 12px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.wifi-icon:hover {
    transform: scale(1.05);
}

/* Títulos */
h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.5;
}

/* Campos do formulário */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #6366f1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.08);
}

.input-wrapper input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover:not(:disabled)::before {
    left: 100%;
}

button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-text, .button-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-loader svg {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensagem */
.message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message:not(:empty) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.15);
}

.message.success {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.15);
}

.message.loading {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.15);
}

/* Rodapé */
.footer-info {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.secure-badge svg {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px 28px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .input-wrapper input {
        font-size: 14px;
        padding: 12px 12px 12px 38px;
    }

    button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }

    .wifi-icon {
        width: 48px;
        height: 48px;
        padding: 10px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 24px 16px 20px;
    }

    h1 {
        font-size: 20px;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizada (opcional) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}