/* ==============================
   ULTIMATE MEMBER – RESET / LOGIN
   Fonte branca, maior e em negrito
   ============================== */

/* Texto explicativo (frases acima dos campos) */
.um-password-reset p,
.um-login p,
.um-register p {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

/* Labels (Usuário, Senha, etc) */
.um .um-field-label label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Campos de input (texto digitado) */
.um input[type="text"],
.um input[type="email"],
.um input[type="password"] {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
}

/* Placeholder (texto dentro do campo antes de digitar) */
.um input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #999999;
}

/* Botões principais (Entrar / Registrar / Redefinir senha) */
.um .um-button {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background-color: #2fa4e7;
    padding: 14px 32px;
    border-radius: 6px;
    text-transform: none;
}

/* Botão secundário (Se cadastrar) */
.um .um-button.um-alt {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #ffffff;
}

/* Link "Esqueceu sua senha?" */
.um a.um-link-alt {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
}

/* Centralização e espaçamento geral */
.um-form {
    margin-top: 20px;
}
/* =========================================================
   RESET PASSWORD — força na página específica (troque 67 se necessário)
   ========================================================= */

/* ⚠️ Se sua página de redefinir senha NÃO for ID 67, troque aqui.
   Você mostrou "Trocar Senha (ID:67)" no print, então usei 67. */

body.page-id-67 .um,
body.page-id-67 .um *{
  -webkit-font-smoothing: antialiased;
}

/* Pega QUALQUER texto do form do Ultimate Member nessa página */
body.page-id-67 .um .um-form,
body.page-id-67 .um .um-form p,
body.page-id-67 .um .um-form span,
body.page-id-67 .um .um-form div,
body.page-id-67 .um .um-form label,
body.page-id-67 .um .um-form small{
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Específico: o texto "Para redefinir sua senha..." costuma estar em um <p> logo antes do campo */
body.page-id-67 .um .um-form > p,
body.page-id-67 .um .um-form .um-field-area p,
body.page-id-67 .um .um-form .um-col-alt p,
body.page-id-67 .um .um-form .um-field-area{
  font-size: 22px !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65) !important;
}

/* Placeholder do input */
body.page-id-67 .um input::placeholder{
  color: rgba(255,255,255,0.85) !important;
  font-weight: 700 !important;
}

/* Botão */
body.page-id-67 .um input[type="submit"],
body.page-id-67 .um .um-button{
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* Se esse texto for “notice” do UM (às vezes é) */
body.page-id-67 .um .um-notice,
body.page-id-67 .um .um-notice p,
body.page-id-67 .um .um-notice span{
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.65) !important;
}
add_action( 'um_after_register', 'redirect_user_after_register', 10, 2 );
function redirect_user_after_register( $user_id, $args ) {
    if ( ! is_admin() ) {
        $user = get_userdata( $user_id );
        wp_safe_redirect( um_user_profile_url( $user->user_login ) );
        exit;
    }
}


