*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #4F46E5; --primary-dark: #3730A3; --primary-light: #EEF2FF;
  --text: #111827; --text-muted: #6B7280; --border: #E5E7EB;
  --bg: #F9FAFB; --font: 'Inter', system-ui, sans-serif;
}
body { font-family: var(--font); background: var(--bg); min-height: 100vh; }
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.auth-card { background: #fff; border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 420px; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.brand-icon-lg { width: 56px; height: 56px; background: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin: 0 auto 1rem; }
.auth-brand h1 { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.auth-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .3rem; }
.alert { padding: .85rem 1rem; border-radius: 10px; font-size: .875rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert a { color: inherit; font-weight: 600; margin-left: .3rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
label { font-size: .82rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.label-link { font-weight: 400; color: var(--primary); font-size: .8rem; }
.label-link:hover { text-decoration: underline; }
.input-icon { position: relative; }
.input-icon > i:first-child { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .9rem; pointer-events: none; }
.input-icon input { width: 100%; padding: .7rem .9rem .7rem 2.5rem; border: 2px solid var(--border); border-radius: 10px; font-size: .9rem; color: var(--text); font-family: var(--font); transition: border-color .2s, box-shadow .2s; }
.input-icon input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.toggle-pw { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0; font-size: .9rem; }
.btn-auth { width: 100%; padding: .85rem; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .1s; margin-top: .4rem; font-family: var(--font); }
.btn-auth:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }
.auth-footer { text-align: center; font-size: .88rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Plan selector */
.plan-select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.plan-radio-label { border: 2px solid var(--border); border-radius: 10px; padding: .7rem; cursor: pointer; transition: all .2s; display: flex; flex-direction: column; gap: .15rem; }
.plan-radio-label input { display: none; }
.plan-radio-label strong { font-size: .85rem; color: var(--text); }
.plan-radio-label span { font-size: .75rem; color: var(--text-muted); }
.plan-radio-label.selected, .plan-radio-label:hover { border-color: var(--primary); background: var(--primary-light); }
.plan-radio-label.selected strong { color: var(--primary); }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .plan-select-grid { grid-template-columns: 1fr 1fr; }
}
