/* ==================================================
   auth.css
   Login, registration and email verification styles.
   Loaded after global.css on auth pages only.
   ================================================== */

/* ==================================================
   LOGIN — SPLIT LAYOUT
   ================================================== */
.main:has(.login-split) { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; padding: 2rem 0; }
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); }
.login-panel { background: #1a0a0f; background-image: radial-gradient(ellipse at 20% 50%,rgba(100,86,110,0.45) 0%,transparent 60%),radial-gradient(ellipse at 80% 20%,rgba(182,161,196,0.20) 0%,transparent 50%),radial-gradient(ellipse at 60% 80%,rgba(123,45,66,0.25) 0%,transparent 50%); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 4rem 3.5rem; position: relative; overflow: hidden; }
.login-panel__logo { margin-bottom: 3rem; }
.login-panel__logo img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.login-panel__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fca74c; margin: 0 0 0.75rem; }
.login-panel__headline { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.25; max-width: 340px; }
.login-panel__headline em { font-style: normal; color: #f59e0b; }
.login-panel__sub { font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 300px; margin: 0 0 2.5rem; }
.login-panel__tiers { display: flex; flex-direction: row; gap: 0.6rem; flex-wrap: wrap; }
.login-panel__tier { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 999px; width: fit-content; }
.login-panel__tier--free { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.12); }
.login-panel__tier--sub { background: rgba(37,99,235,0.2); color: #93c5fd; border: 1px solid rgba(37,99,235,0.3); }
.login-panel__tier--vip { background: rgba(161,98,7,0.25); color: #fcd34d; border: 1px solid rgba(161,98,7,0.35); }

/* ==================================================
   LOGIN — FORM PANEL
   ================================================== */
.login-form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4rem 3rem; background: var(--bg); }
.login-form-wrap { width: 100%; max-width: 380px; }
.login-form-wrap h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.4rem; color: var(--text); }
.login-form-wrap__sub { font-size: 0.92rem; color: #888; margin: 0 0 2rem; }
.login-form-wrap form { display: flex; flex-direction: column; gap: 1.1rem; }
.login-form-wrap label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.login-form-wrap input[type="email"],.login-form-wrap input[type="password"] { padding: 0.75rem 1rem; border-radius: 8px; border: 1.5px solid var(--input-border); background: var(--input-bg,var(--surface)); color: var(--text); font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.login-form-wrap input[type="email"]:focus,.login-form-wrap input[type="password"]:focus { outline: none; border-color: #7b2d42; box-shadow: 0 0 0 3px rgba(123,45,66,0.15); }
.login-form-wrap input[type="submit"] { margin-top: 0.5rem; padding: 0.85rem; background: #7b2d42; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, transform 0.1s ease; }
.login-form-wrap input[type="submit"]:hover { background: #9b3a55; transform: translateY(-1px); }
.login-form-wrap input[type="submit"]:active { transform: translateY(0); }
.login-form-footer { margin-top: 1.5rem; font-size: 0.9rem; color: #888; text-align: center; }
.login-form-footer a { color: #7b2d42; font-weight: 600; text-decoration: none; }
.login-form-footer a:hover { text-decoration: underline; }

/* ==================================================
   LOGIN — MOBILE
   ================================================== */
@media (max-width: 700px) {
  .login-split { grid-template-columns: 1fr; min-height: unset; }
  .login-panel { padding: 2.5rem 1.75rem; align-items: center; text-align: center; }
  .login-panel__logo { margin-bottom: 1.5rem; }
  .login-panel__headline { font-size: 1.4rem; }
  .login-panel__sub { display: none; }
  .login-panel__tiers { justify-content: center; }
  .login-form-panel { padding: 2.5rem 1.5rem; }
}

/* ==================================================
   REGISTRATION — TRUST BOX
   ================================================== */
.register-trust-box { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; background: rgba(139,26,26,0.05); border: 1px solid rgba(139,26,26,0.2); border-radius: var(--radius); text-decoration: none; color: var(--text); margin-bottom: 1rem; transition: background 0.15s; }
.register-trust-box:hover { background: rgba(139,26,26,0.1); color: var(--text); }
.register-trust-box__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.register-trust-box__text { font-size: 0.88rem; line-height: 1.55; }
.register-trust-box__link { color: var(--primary); font-weight: 600; }

/* ==================================================
   ONBOARDING WELCOME (first login / post-register)
   ================================================== */
.onboarding-welcome { display: flex; align-items: flex-start; gap: 1rem; background: linear-gradient(135deg,var(--btn-bg,#c0392b),#e74c3c); color: #fff; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.onboarding-welcome__icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.onboarding-welcome__title { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.onboarding-welcome__text { margin: 0; font-size: 0.9rem; opacity: 0.92; line-height: 1.5; }
.onboarding-welcome .required-mark { color: #fff; font-weight: 700; }

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: color 0.2s;
    width: auto;
}

.password-toggle:hover {
    color: #d4af37;
}