:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-main: #c5c6c7;
    --highlight: #66fcf1;
    --highlight-dark: #45a29e;
    --error: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh; /* Alterado para min-height para evitar cortes em telas pequenas */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    position: relative;
    padding: 20px; /* Margem de segurança para mobile */
}

body::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.1) 0%, rgba(11, 12, 16, 0) 60%);
    z-index: -1;
    position: fixed; /* Fixar o background */
}

.login-container {
    background-color: rgba(31, 40, 51, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.1);
    width: 100%;
    max-width: 450px; /* Um pouco mais largo que o login */
    border: 1px solid rgba(102, 252, 241, 0.1);
    transition: transform 0.3s ease;
}

.logo-area {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(102, 252, 241, 0.2));
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--highlight);
    font-weight: 600;
}

/* Input padrão */
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #0b0c10;
    border: 1px solid #2c3e50;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 8px rgba(102, 252, 241, 0.3);
}

/* Estilo específico para o grupo de telefone (lado a lado) */
.phone-row {
    display: flex;
    gap: 10px;
}

.phone-row select {
    width: 35%; /* Largura do código do país */
    cursor: pointer;
}

.phone-row input {
    width: 65%; /* Largura do número */
}

.helper-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--highlight);
    color: var(--highlight);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-login:hover {
    background-color: var(--highlight);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.6);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-message {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.register-message a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 700;
}

.register-message a:hover {
    text-decoration: underline;
}

#error-msg {
    color: var(--error);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
    padding: 8px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* ===== PASSWORD INPUT WITH TOGGLE ===== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Espaço para o botão de toggle */
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle-btn:hover {
    color: var(--highlight);
}

.password-toggle-btn.active {
    color: var(--highlight);
}

/* ===== PASSWORD REQUIREMENTS ===== */
.password-requirements {
    margin-top: 0.8rem;
    padding: 1rem;
    background: rgba(11, 12, 16, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(102, 252, 241, 0.1);
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #888;
    transition: color 0.3s;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.requirement-item.pending .requirement-icon {
    color: #888;
}

.requirement-item.valid {
    color: #4ade80;
}

.requirement-item.valid .requirement-icon::before {
    content: '✓';
    color: #4ade80;
}

.requirement-item.invalid {
    color: #f87171;
}

.requirement-item.invalid .requirement-icon::before {
    content: '✗';
    color: #f87171;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    display: block;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.error-message.show {
    opacity: 1;
}

.form-group input.error {
    border-color: var(--error);
}

/* ===== CHECKBOXES ===== */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.6rem;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--highlight);
}

.checkbox-text {
    line-height: 1.5;
}

.link-terms {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-terms:hover {
    color: var(--highlight-dark);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .logo-area h1 {
        font-size: 1.3rem;
    }
    
    .password-requirements {
        padding: 0.8rem;
    }
    
    .requirement-item {
        font-size: 0.75rem;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
}