/* 
 * Account Login - Modern Layout
 * Design System baseado no Account Management V2
 * Data: 09/11/2025
 */

/* Container principal */
.login-modern {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #0a0e13;
    color: #e6f8ff;
}

/* Cabeçalho principal */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-title {
    color: #e6f8ff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #a8b3c2;
    font-size: 16px;
}

/* Card de login */
.login-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 2px solid #2f3944;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.login-card-title {
    color: #00ffaa;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-card-icon {
    font-size: 28px;
}

/* Formulário de login */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 5px 10px;
    max-width: 320px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-login {
    color: #00ffaa;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    font-size: 18px;
}

.form-input-login {
    width: 100%;
    background: #0f141a;
    border: 2px solid #2f3944;
    border-radius: 8px;
    padding: 14px 16px;
    color: #e6f8ff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input-login:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.15);
}

.form-input-login.error {
    border-color: #ff4444;
}

/* Botões de ação do login */
.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-login-primary {
    background: linear-gradient(135deg, #00ffaa 0%, #00d9a3 100%);
    color: #0a0e13;
}

.btn-login-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 170, 0.5);
    transform: translateY(-2px);
}

.btn-login-secondary {
    background: #2a3440;
    color: #e6f8ff;
}

.btn-login-secondary:hover {
    background: #354252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* Mensagem de erro */
.login-error {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: start;
    gap: 14px;
}

.login-error-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.login-error-content {
    flex: 1;
}

.login-error-title {
    color: #ff4444;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-error-list {
    color: #ffb3b3;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

/* Mensagem de logout sucesso */
.logout-success {
    background: rgba(0, 255, 170, 0.1);
    border: 2px solid #00ffaa;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.logout-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.logout-success-title {
    color: #00ffaa;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.logout-success-text {
    color: #a8b3c2;
    font-size: 15px;
}

.logout-success-text a {
    color: #00ffaa;
    text-decoration: none;
    font-weight: 600;
}

.logout-success-text a:hover {
    text-decoration: underline;
}

/* Card "New to Furion" */
.signup-section {
    text-align: center;
    margin-top: 50px;
}

.signup-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    color: #a8b3c2;
}

.signup-divider::before,
.signup-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2a3440, transparent);
}

.signup-title {
    color: #e6f8ff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.signup-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 2px solid #2f3944;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.signup-content {
    flex: 1;
    text-align: left;
}

.signup-server-title {
    color: #00ffaa;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.signup-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signup-features li {
    color: #a8b3c2;
    font-size: 15px;
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.signup-features li::before {
    content: "⚔️";
    position: absolute;
    left: 0;
    font-size: 18px;
}

.signup-action {
    flex-shrink: 0;
}

.btn-create-account {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #2a1a00;
    border: none;
    padding: 18px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.3);
}

.btn-create-account:hover {
    box-shadow: 0 8px 24px rgba(255, 170, 0, 0.6);
    transform: translateY(-3px);
    text-decoration: none;
    color: #2a1a00;
}

.btn-create-icon {
    font-size: 24px;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-modern {
        padding: 12px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .login-card {
        padding: 24px;
    }
    
    .signup-card {
        flex-direction: column;
        text-align: center;
    }
    
    .signup-content {
        text-align: center;
    }
    
    .signup-features li {
        text-align: left;
    }
    
    .login-actions {
        gap: 10px;
    }
}

/* Animações */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Loading state */
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: "⏳";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Password visibility toggle (opcional para futuro) */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #a8b3c2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00ffaa;
}

/* Security badge (opcional) */
.security-badge {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #00ffaa;
}

.security-badge-icon {
    margin-right: 6px;
}

/* ============================================
   reCAPTCHA STYLES
   ============================================ */

/* Container do reCAPTCHA */
.g-recaptcha {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    transform: scale(1);
    transform-origin: center;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: center;
    }
}

/* Garantir que o reCAPTCHA não quebre o layout */
.form-group .g-recaptcha {
    width: 100%;
    max-width: 304px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste de espaçamento quando há erro de CAPTCHA */
.login-error + .login-card .g-recaptcha {
    animation: pulse 0.5s ease-in-out;
}
