/**
 * TEATIA - Página Minha Conta (Login/Registro)
 * Design centralizado e moderno
 */

/* Container principal - CENTRALIZADO */
.teatia-login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f5fb 0%, #fef9ff 100%);
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards de Login e Registro */
.login-container,
.register-container {
    flex: 1 1 480px;
    max-width: 520px;
    background: white;
    border-radius: 25px;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(198, 163, 213, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover,
.register-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(198, 163, 213, 0.3);
}

/* Header dos cards */
.login-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px dashed #f0e6f5;
}

.login-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.login-header p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Campos de formulário */
.teatia-login-wrapper .form-row {
    margin-bottom: 22px;
}

.teatia-login-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.teatia-login-wrapper label .required {
    color: #e53e3e;
    font-weight: 700;
}

/* Descrição da senha forte */
.teatia-login-wrapper .woocommerce-password-strength,
.teatia-login-wrapper .woocommerce-password-hint {
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f0f0;
}

.teatia-login-wrapper .woocommerce-password-strength.strong {
    background: #d4edda;
    color: #155724;
}

.teatia-login-wrapper .woocommerce-password-strength.short,
.teatia-login-wrapper .woocommerce-password-strength.bad {
    background: #f8d7da;
    color: #721c24;
}

.teatia-login-wrapper .woocommerce-password-strength.good {
    background: #fff3cd;
    color: #856404;
}

.teatia-login-wrapper input.input-text,
.teatia-login-wrapper input[type="text"],
.teatia-login-wrapper input[type="email"],
.teatia-login-wrapper input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    color: #2d3748;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.teatia-login-wrapper input.input-text:focus,
.teatia-login-wrapper input[type="text"]:focus,
.teatia-login-wrapper input[type="email"]:focus,
.teatia-login-wrapper input[type="password"]:focus {
    outline: none;
    border-color: #c6a3d5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(198, 163, 213, 0.1);
}

/* Checkbox Lembrar-me */
.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #c6a3d5;
}

/* Botão Entrar/Registrar */
.teatia-login-wrapper button[type="submit"],
.teatia-login-wrapper .teatia-button-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #c6a3d5 0%, #b292c4 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(198, 163, 213, 0.4);
    margin-top: 10px;
}

.teatia-login-wrapper button[type="submit"]:hover,
.teatia-login-wrapper .teatia-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(198, 163, 213, 0.5);
    background: linear-gradient(135deg, #d4b5e0 0%, #ba98cc 100%);
}

/* Link Esqueceu a senha */
.lost_password {
    text-align: center;
    margin-top: 20px;
}

.lost_password a {
    color: #c6a3d5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.lost_password a:hover {
    color: #b292c4;
    text-decoration: underline;
}

/* Link "Ainda não tem conta?" */
.teatia-register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #f0e6f5;
}

.teatia-register-link p {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 10px;
}

.teatia-register-link a {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(198, 163, 213, 0.1);
    color: #c6a3d5;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.teatia-register-link a:hover {
    background: #c6a3d5;
    color: white;
}

/* Mensagens de erro/sucesso */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid;
    font-size: 1rem;
    line-height: 1.6;
}

.woocommerce-error {
    background: #fff5f5;
    border-color: #e53e3e;
    color: #742a2a;
}

.woocommerce-message {
    background: #f0fff4;
    border-color: #38a169;
    color: #22543d;
}

/* RESPONSIVE - Mobile */
@media (max-width: 900px) {
    .teatia-login-wrapper {
        flex-direction: column;
        padding: 40px 15px;
        gap: 30px;
    }
    
    .login-container,
    .register-container {
        max-width: 100%;
        padding: 40px 30px;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .login-container,
    .register-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .teatia-login-wrapper button[type="submit"] {
        padding: 16px;
        font-size: 1.05rem;
    }
}

/* TOGGLE LOGIN/REGISTRO (Pop-up style) */
.teatia-auth-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.teatia-auth-toggle button {
    padding: 12px 24px;
    background: #c6a3d5;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(198, 163, 213, 0.4);
    transition: all 0.2s;
}

.teatia-auth-toggle button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(198, 163, 213, 0.5);
}

/* Mostrar apenas 1 card por vez no mobile */
@media (max-width: 768px) {
    .register-container.hidden-mobile {
        display: none;
    }
    
    .show-register .login-container {
        display: none;
    }
    
    .show-register .register-container {
        display: block !important;
    }
}
