/* ==========================================================================
   Contas: entrar, registar, recuperar e "A minha conta"
   ========================================================================== */

/* ── Páginas de acesso ── */
.ct-auth { min-height: 100vh; padding: 130px 0 90px; font-family: "Inter", sans-serif; color: #0b1a3d; background: linear-gradient(170deg, #040f3a 0%, #0a2a85 52%, #0057e5 100%); position: relative; overflow: hidden; }
.ct-auth::before { content: ""; position: absolute; right: -160px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 184, 255, .3), transparent 70%); pointer-events: none; }
.ct-wrap { position: relative; width: min(1040px, 92%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ct-narrow { grid-template-columns: minmax(0, 480px); justify-content: center; }
.ct-side { color: #fff; }
.ct-kicker { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font: 500 11px "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.ct-side h1 { margin: 20px 0 14px; font: 400 clamp(34px, 4vw, 52px)/1.08 "Manrope", sans-serif; letter-spacing: -.045em; color: #fff; }
.ct-side p { margin: 0 0 24px; color: rgba(255, 255, 255, .78); font-weight: 300; line-height: 1.7; font-size: 17px; max-width: 420px; }
.ct-side ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ct-side li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.ct-side li i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(143, 184, 255, .25); color: #8fb8ff; font-size: 11px; }
.ct-side small { display: block; max-width: 420px; color: rgba(255, 255, 255, .6); line-height: 1.6; }

.ct-card { padding: 38px 40px; border-radius: 30px; background: #fff; box-shadow: 0 40px 90px rgba(2, 10, 40, .45); }
.ct-card h2 { margin: 0 0 20px; font: 600 26px "Manrope", sans-serif; letter-spacing: -.03em; }
.ct-lead { margin: -8px 0 20px; color: #4f5d7d; line-height: 1.65; }

.ct-f { display: grid; gap: 7px; margin: 0 0 16px; }
.ct-f > span:first-child { font: 500 13px "Inter", sans-serif; color: #34456b; }
.ct-f em { font-style: normal; color: #8a96b3; font-weight: 400; }
.ct-f small { color: #7a86a3; font-size: 12.5px; }
.ct-f input, .ct-f select { width: 100%; box-sizing: border-box; padding: 13px 16px !important; border-radius: 14px !important; border: 1px solid #cfe0ff !important; background: #f9fbff !important; font: 400 16px "Inter", sans-serif !important; color: #0b1a3d; transition: border-color .25s, box-shadow .25s, background .25s; }
.ct-f input:focus, .ct-f select:focus { outline: 0; border-color: #0057e5 !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(0, 87, 229, .12) !important; }
.ct-f input:disabled { opacity: .6; cursor: not-allowed; }
.ct-pw { position: relative; display: block; }
.ct-pw input { padding-right: 50px !important; }
.ct-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #7a86a3; cursor: pointer; }
.ct-eye:hover { color: #0057e5; background: #eef4ff; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 13.5px; }
.ct-row a, .ct-alt a:not(.ct-btn), .ct-check a, .ct-link { color: #0057e5; font-weight: 500; text-decoration: none; }
.ct-row a:hover, .ct-alt a:hover, .ct-check a:hover, .ct-link:hover { text-decoration: underline; }
.ct-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; font-size: 13.5px; line-height: 1.55; color: #4f5d7d; }
.ct-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0057e5; flex: none; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px 24px; border: 0; border-radius: 999px; background: #0057e5; color: #fff; font: 600 15px "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: background .3s, transform .3s, box-shadow .3s; }
.ct-btn:hover { background: #0048c0; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 87, 229, .32); }
.ct-btn-danger { background: #c62828; }
.ct-btn-danger:hover { background: #a91f1f; box-shadow: 0 14px 30px rgba(198, 40, 40, .3); }
.ct-alt { margin: 22px 0 0; text-align: center; color: #5b6b8a; font-size: 14.5px; }
.ct-alt .ct-btn { width: auto; }

.ct-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 13px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.ct-alert.err { background: #fdeceb; color: #9c1c1c; border: 1px solid #f6c9c6; }
.ct-alert.ok { background: #e7f6ee; color: #0a5e35; border: 1px solid #bfe5cf; }
.ct-alert i { margin-top: 3px; }
.ct-dev { margin: 0 0 8px; padding: 12px 16px; border-radius: 14px; background: #fff7e0; border: 1px dashed #e5c35a; color: #6b5200; font-size: 14px; line-height: 1.6; }

/* ── A minha conta ── */
.ct-hero .ct-avatar-lg { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; background: #fff; color: #0057e5; font: 600 24px "Manrope", sans-serif; box-shadow: 0 16px 40px rgba(2, 10, 40, .35); }
.ct-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 22px 0 0; }
.ct-stats li { color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 300; }
.ct-stats strong { font: 500 22px "Manrope", sans-serif; color: #fff; margin-right: 6px; }
.ct-area { background: #f4f8ff; padding: 36px 0 104px; font-family: "Inter", sans-serif; color: #0b1a3d; }
.ct-area-wrap { width: min(980px, 92%); margin: 0 auto; }
.ct-tabs { position: sticky; top: 74px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 28px; padding: 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid #dfe8fa; scrollbar-width: none; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tabs a { flex: none; padding: 10px 20px; border-radius: 999px; color: #34456b; font: 500 14px "Inter", sans-serif; text-decoration: none; transition: all .3s; }
.ct-tabs a:hover { color: #0057e5; background: #eef4ff; }
.ct-tabs a.is-on { background: #0057e5; color: #fff; }
.ct-tabs .ct-out { margin-left: auto; color: #8a96b3; }
.ct-block { scroll-margin-top: 150px; margin-bottom: 30px; padding: 32px 34px; border-radius: 28px; background: #fff; border: 1px solid #dfe8fa; }
.ct-block h2 { margin: 0 0 20px; font: 600 22px "Manrope", sans-serif; letter-spacing: -.02em; }
.ct-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ct-block-head .ct-link { font-size: 14px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ct-study { display: grid; gap: 10px; padding: 20px 22px; border-radius: 22px; background: #f4f8ff; border: 1px solid #e3ecfb; text-decoration: none; color: inherit; transition: transform .4s var(--tx-ease, ease), border-color .3s; }
.ct-study:hover { transform: translateY(-4px); border-color: #0057e5; }
.ct-study-cat { font: 600 11px "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #0057e5; }
.ct-study strong { font: 600 16.5px/1.3 "Manrope", sans-serif; }
.ct-study small { color: #5b6b8a; font-size: 13px; }
.ct-bar { display: block; height: 6px; border-radius: 6px; background: #d6e4ff; overflow: hidden; }
.ct-bar i { display: block; height: 100%; border-radius: 6px; background: #0057e5; }
.ct-empty { text-align: center; padding: 30px 12px 8px; color: #5b6b8a; }
.ct-empty > i { font-size: 32px; color: #b8cdf3; margin-bottom: 12px; }
.ct-empty p { margin: 0 0 18px; }
.ct-empty .ct-btn { width: auto; }
.ct-notes { display: grid; gap: 14px; }
.ct-note { padding: 18px 22px; border-radius: 20px; background: #f9fbff; border: 1px solid #e3ecfb; }
.ct-note a { color: #0b1a3d; text-decoration: none; font-size: 15px; }
.ct-note a strong { color: #0057e5; }
.ct-note a:hover { text-decoration: underline; }
.ct-note p { margin: 10px 0 8px; color: #34456b; line-height: 1.7; white-space: normal; }
.ct-note small { color: #8a96b3; font-size: 12.5px; }
.ct-form { max-width: 520px; }
.ct-form .ct-btn { width: auto; padding-inline: 34px; }
.ct-danger { margin-top: 30px; padding: 18px 22px; border-radius: 20px; background: #fff8f7; border: 1px solid #f3d2cf; }
.ct-danger summary { cursor: pointer; font-weight: 600; color: #9c1c1c; }
.ct-danger p { margin: 12px 0 16px; color: #6b3b38; font-size: 14.5px; line-height: 1.6; }

@media (max-width: 860px) {
  .ct-wrap { grid-template-columns: 1fr; gap: 30px; }
  .ct-side p, .ct-side small { max-width: none; }
  .ct-auth { padding: 110px 0 60px; }
  .ct-card { padding: 28px 22px; border-radius: 26px; }
  .ct-two { grid-template-columns: 1fr; gap: 0; }
  .ct-block { padding: 24px 20px; }
  .ct-tabs { top: 64px; }
}
