/* Shared look for the login & register pages (one-screen auth layout).
   Loaded after web2/css/style.css so these rules win. */
:root {
    --gp-blue: #1C00B8;
    --gp-blue-dark: #15008c;
    --gp-green: #00C48C;
    --gp-muted: #6c6c80;
    --gp-border: #dcdcea;
    --gp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body.gp-auth {
    font-family: var(--gp-font);
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff url('../images/home/background-image.png') center top / cover no-repeat;
}
.gp-auth input, .gp-auth button, .gp-auth textarea, .gp-auth select, .gp-auth h1, .gp-auth h2, .gp-auth h3 { font-family: inherit; }

/* top bar */
.gp-auth .navbar { flex-shrink: 0; border-bottom: 1px solid whitesmoke; padding-top: .6rem; padding-bottom: .6rem; }
.gp-auth .navbar-brand img { height: 2.5rem; width: 7.5rem; object-fit: contain; }
.gp-auth .gp-nav-text { color: var(--gp-muted); font-size: .95rem; }

/* main area fills the rest of the screen */
.gp-auth-main { flex: 1; display: flex; align-items: center; padding: 1.5rem 0; }

/* left panel */
.gp-auth-title { font-size: 2.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.08rem; margin: 0; color: #000; }
.gp-auth-title span { color: var(--gp-blue); }
.gp-auth-sub { font-size: 1.1rem; font-weight: 500; line-height: 1.55; color: #222; margin: .85rem 0 1.5rem; }

/* card */
.gp-card { background: #fff; border-radius: 1.25rem; border: 1px solid #eef0ff; box-shadow: 0 1.25rem 3rem rgba(28, 0, 184, .12); padding: 2rem; }
.gp-card-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 .2rem; }
.gp-card-sub { color: var(--gp-muted); margin-bottom: 1.25rem; font-size: .95rem; }
.gp-card .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.gp-card .form-control { border-radius: .75rem; padding: .65rem .95rem; border-color: var(--gp-border); font-size: .95rem; }
.gp-card .form-control:focus { border-color: var(--gp-blue); box-shadow: 0 0 0 .2rem rgba(28, 0, 184, .15); }
.gp-card .form-check-input:checked { background-color: var(--gp-blue); border-color: var(--gp-blue); }
.gp-hint { display: block; font-size: .78rem; color: var(--gp-blue); font-weight: 500; margin-top: .25rem; }

/* inputs with icons + password eye */
.gp-input-icon { position: relative; }
.gp-input-icon > .gp-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9a9ab0; pointer-events: none; }
.gp-input-icon .form-control { padding-left: 2.6rem; }
.gp-input-icon .form-control.has-toggle { padding-right: 3rem; }
.gp-pass-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gp-muted); padding: .4rem .6rem; border-radius: .5rem; }
.gp-pass-toggle:hover, .gp-pass-toggle:focus-visible { color: var(--gp-blue); background: #f1efff; outline: none; }

/* links & button */
.gp-link { color: var(--gp-blue); font-weight: 600; text-decoration: none; }
.gp-link:hover { color: var(--gp-blue-dark); text-decoration: underline; }
.gp-btn { display: block; width: 100%; background: var(--gp-blue); color: #fff; border: 0; border-radius: 6.25rem; padding: .8rem 1rem; font-size: 1.1rem; font-weight: 600; transition: background .2s; }
.gp-btn:hover:not(:disabled) { background: var(--gp-blue-dark); color: #fff; }
.gp-btn:disabled { background: #8e86c9; cursor: not-allowed; }
.gp-alert { border-radius: .75rem; font-size: .92rem; }
.gp-small { font-size: .85rem; color: var(--gp-muted); }

/* numbered steps */
.gp-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.gp-steps li { display: flex; gap: 1rem; align-items: flex-start; position: relative; padding-bottom: 1.15rem; }
.gp-steps li:last-child { padding-bottom: 0; }
.gp-steps li:not(:last-child)::before { content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: .2rem; width: 2px; background: #d9d4ff; }
.gp-step-num { flex: 0 0 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--gp-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 .35rem .9rem rgba(28, 0, 184, .25); }
.gp-steps h3 { font-size: 1.05rem; font-weight: 700; margin: .15rem 0 .15rem; }
.gp-steps p { margin: 0; color: #444; font-size: .93rem; line-height: 1.45; }

/* benefit chips */
.gp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.gp-chip { background: #fff; border: 1px solid #e4e1ff; border-radius: 2rem; padding: .35rem .85rem; font-size: .85rem; font-weight: 500; }
.gp-chip i { color: var(--gp-green); margin-right: .35rem; }

@media (max-width: 991.98px) {
    .gp-auth-main { padding: 1.25rem 0 2rem; }
    .gp-auth-title { font-size: 2.1rem; }
    .gp-card { padding: 1.5rem 1.15rem; }
}
/* short laptop screens: tighten so everything stays on one screen */
@media (min-width: 992px) and (max-height: 760px) {
    .gp-auth-main { padding: .75rem 0; }
    .gp-auth-title { font-size: 2.35rem; }
    .gp-auth-sub { margin: .6rem 0 1.1rem; font-size: 1rem; }
    .gp-card { padding: 1.5rem 1.75rem; }
    .gp-card-sub { margin-bottom: .9rem; }
    .gp-card .form-control { padding: .5rem .9rem; }
    .gp-steps li { padding-bottom: .8rem; }
    .gp-chips { margin-top: 1rem; }
}

/* ---------- forgot / reset password ---------- */
.gp-hero-icon { position: relative; width: 5.5rem; height: 5.5rem; margin-bottom: 1.5rem; }
.gp-hero-icon > span { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 1.6rem; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, #1C00B8, #6a4dff); box-shadow: 0 1rem 2.2rem rgba(28, 0, 184, .3); animation: gpBob 4s ease-in-out infinite; }
.gp-hero-icon::before, .gp-hero-icon::after { content: ""; position: absolute; inset: 0; border-radius: 1.6rem; border: 2px solid rgba(106, 77, 255, .45); animation: gpRing 2.8s ease-out infinite; }
.gp-hero-icon::after { animation-delay: 1.4s; }
.gp-tip { display: flex; gap: .75rem; align-items: flex-start; background: rgba(255, 255, 255, .85); border: 1px solid #eef0ff; border-radius: .9rem; padding: .85rem 1rem; margin-top: 1.5rem; font-size: .9rem; color: #333; }
.gp-tip i { color: var(--gp-blue); margin-top: .2rem; }

/* step / state switching inside a card */
.gp-state { animation: gpFadeUp .45s ease both; }
.gp-state[hidden] { display: none !important; }
.gp-state-icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 1.1rem; }
.gp-state-icon.ok { background: #e3f9f1; color: #00936a; animation: gpPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.gp-state-icon.mail { background: #ebe8ff; color: var(--gp-blue); animation: gpPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.gp-state-icon.bad { background: #fdecef; color: #d6335a; }
.gp-btn-ghost { display: block; width: 100%; text-align: center; background: #fff; color: var(--gp-blue); border: 1.5px solid #d9d4ff; border-radius: 6.25rem; padding: .7rem 1rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.gp-btn-ghost:hover:not(:disabled) { background: #f4f2ff; border-color: var(--gp-blue); color: var(--gp-blue); }
.gp-btn-ghost:disabled { color: #9a9ab0; cursor: not-allowed; }

/* password strength + rules */
.gp-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: .55rem 0 .25rem; }
.gp-strength span { height: .35rem; border-radius: 1rem; background: #e7e4ff; transition: background .3s; }
.gp-strength[data-level="1"] span:nth-child(-n+1) { background: #e5486b; }
.gp-strength[data-level="2"] span:nth-child(-n+2) { background: #ff9f1c; }
.gp-strength[data-level="3"] span:nth-child(-n+3) { background: #6a4dff; }
.gp-strength[data-level="4"] span { background: #00C48C; }
.gp-strength-label { font-size: .78rem; color: var(--gp-muted); min-height: 1.1rem; }
.gp-rules { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; font-size: .82rem; color: var(--gp-muted); }
.gp-rules li { display: flex; align-items: center; gap: .4rem; transition: color .2s; }
.gp-rules li i { font-size: .75rem; color: #c9c5e6; transition: color .2s; }
.gp-rules li.ok { color: #00936a; }
.gp-rules li.ok i { color: #00C48C; }
.gp-field-error { font-size: .82rem; color: #dc3545; margin-top: .3rem; min-height: 0; }
.gp-caps { font-size: .78rem; color: #b07800; margin-top: .3rem; }
.gp-shake { animation: gpShake .4s ease; }

@keyframes gpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes gpRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes gpFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gpPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gpShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 575.98px) { .gp-rules { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .gp-hero-icon > span, .gp-hero-icon::before, .gp-hero-icon::after, .gp-state, .gp-state-icon, .gp-shake { animation: none !important; }
}
