/* Importar fonte Inter do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    /* Cores sólidas */
    --primary-color: #667eea;
    --secondary-color: #833AB4;
    --accent-color: #4facfe;
    
    /* Cores de fundo */
    --bg-primary: #667eea;
    --bg-secondary: #833AB4;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Cores de texto */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Bordas e sombras */
    --border-glass: rgba(255, 255, 255, 0.18);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-glass-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    
    /* Blur */
    --blur-glass: blur(10px);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Card com efeito liquid glass */
.glass-card {
    background: #ffffff;
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Título */
.title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 16px;
    color: #666666;
    text-align: center;
    margin-bottom: 30px;
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #dddddd;
    color: #333333;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

/* Botão */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    background: #5a6fd1;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link a:hover {
    color: #5a6fd1;
    text-decoration: underline;
}

/* Mensagens de erro/sucesso */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.message-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.message-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 36px;
    }
}

/* Language Popup */
.lang-popup-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lang-popup-btn:hover {
    background: #6c2b96;
    transform: scale(1.1);
}

.lang-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.lang-modal {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
}

.lang-modal-backdrop.active .lang-modal {
    transform: scale(1);
}

.lang-modal h3 {
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.lang-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lang-option {
    background: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 20px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lang-option:hover, .lang-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.lang-option span {
    font-size: 2rem;
}

.lang-option p {
    font-weight: 600;
}

.lang-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.lang-close:hover {
    color: #333333;
}
