/* Authentication pages styles */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 450px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.logo .logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo p {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* Campos de formulário específicos */
input[type="text"],
input[type="password"] {
    padding: 18px;
}

/* Sobrescrever para inputs dentro de container de senha */
.password-input-container input[type="password"] {
    padding: 18px 50px 18px 18px !important;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Botão específico para auth */
.btn.auth-btn {
    padding: 18px;
    margin-bottom: 25px;
}

.btn.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Alertas específicos */
.alert {
    text-align: center;
}

/* Links esqueceu senha */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    color: #667eea;
}

/* Alert de boas-vindas */
.welcome-back {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #c8e6c9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* ==================== REMEMBER ME CONTAINER ==================== */

.remember-me-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.remember-me-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label {
    position: relative;
    cursor: pointer;
    display: block;
    width: 22px;
    height: 22px;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.checkbox-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 2;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-checkmark {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-wrapper:hover .checkbox-custom {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.checkbox-wrapper input[type="checkbox"]:focus + .checkbox-label .checkbox-custom {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.checkbox-wrapper input[type="checkbox"]:active + .checkbox-label .checkbox-custom {
    transform: scale(0.95);
}

.checkbox-text-container {
    flex: 1;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-text-container:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin: 0 0 4px 0;
    cursor: pointer;
}

.checkbox-hint {
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .remember-me-container {
        gap: 10px;
        padding: 12px;
    }
    
    .checkbox-label {
        width: 24px;
        height: 24px;
    }
    
    .checkbox-custom {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }
    
    .checkbox-checkmark {
        font-size: 15px;
    }
    
    .checkbox-text {
        font-size: 14px;
    }
    
    .checkbox-hint {
        font-size: 12px;
    }
}

/* ==================== REMEMBER FEEDBACK ==================== */

.remember-feedback {
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 1;
}

.remember-feedback.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #c8e6c9;
}

.remember-feedback.info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #bbdefb;
}

.remember-feedback.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #fff3cd;
}

/* ==================== FORGOT PASSWORD PAGE ==================== */

.form-hint {
    display: block;
    color: #a0a0a0;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

.info-box {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.info-box h4 {
    color: #64b5f6;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #bbdefb;
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.success-container {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    margin-bottom: 25px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.success-container h3 {
    color: #c8e6c9;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.success-container p {
    color: #a5d6a7;
    margin-bottom: 25px;
    line-height: 1.6;
}

.next-steps {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.next-steps h4 {
    color: #c8e6c9;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.next-steps ol {
    margin: 0;
    padding-left: 20px;
    color: #a5d6a7;
}

.next-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive para forgot password */
@media (max-width: 768px) {
    .info-box {
        padding: 15px;
    }
    
    .success-container {
        padding: 15px;
    }
    
    .success-icon {
        font-size: 2.5rem;
    }
    
    .success-container h3 {
        font-size: 20px;
    }
    
    .next-steps {
        padding: 15px;
    }
}

/* ==================== CHANGE PASSWORD PAGE ==================== */

.alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.password-match {
    margin-top: 8px;
    font-size: 14px;
}

.password-match.success .match-success {
    color: #4caf50;
}

.password-match.error .match-error {
    color: #f44336;
}

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

.btn.enabled {
    opacity: 1;
    cursor: pointer;
}

/* ==================== PASSWORD INPUT CONTAINER ==================== */

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 50px !important; /* Espaço para o botão */
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* ==================== PASSWORD REQUIREMENTS ==================== */

.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.requirements-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.requirement-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.requirement-text {
    color: #a0a0a0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.requirement.valid .requirement-text {
    color: #4caf50;
}

.requirement.invalid .requirement-text {
    color: #f44336;
}

/* Estilos específicos para os requisitos de senha da trocar senha */
.req-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    display: inline-block;
}

.req-text {
    color: #a0a0a0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.requirement.valid .req-text {
    color: #4caf50;
}

.requirement.invalid .req-text {
    color: #f44336;
}

/* ==================== PASSWORD STRENGTH ==================== */

.password-strength {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.strength-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #f44336;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.strength-text {
    color: #f44336;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
}

/* ==================== PASSWORD STRENGTH LEVELS ==================== */

.strength-fill.very-weak {
    width: 20%;
    background: #f44336;
}

.strength-fill.weak {
    width: 40%;
    background: #ff9800;
}

.strength-fill.medium {
    width: 60%;
    background: #ffeb3b;
}

.strength-fill.strong {
    width: 80%;
    background: #8bc34a;
}

.strength-fill.very-strong {
    width: 100%;
    background: #4caf50;
}

.strength-text.very-weak {
    color: #f44336;
}

.strength-text.weak {
    color: #ff9800;
}

.strength-text.medium {
    color: #ffeb3b;
}

.strength-text.strong {
    color: #8bc34a;
}

.strength-text.very-strong {
    color: #4caf50;
}