*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #f5f3ff 50%, #fdf2f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ── Card ── */
.auth-page { width: 100%; display: flex; align-items: center; justify-content: center; }

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(15,23,42,.10), 0 4px 20px rgba(15,23,42,.06);
    border: 1px solid #e2e8f0;
}

/* ── Logo ── */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #ec4899);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 24px rgba(220,38,38,.3);
}
.auth-logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.5px;
}
.auth-logo p {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Header ── */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* ── Alerts ── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 22px;
    line-height: 1.5;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── Form groups ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap > i {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.input-wrap input {
    width: 100%;
    padding: 13px 48px 13px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #fafbfd;
    outline: none;
    transition: .2s;
}
.input-wrap input:focus {
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.input-wrap input::placeholder { color: #9ca3af; }

.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    padding: 4px;
    transition: color .2s;
}
.toggle-pw:hover { color: #475569; }

/* Password rules */
.pw-rules {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}
.pw-rules span {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: color .2s;
}

/* ── Submit button ── */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #ec4899);
    color: white;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: .25s;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(220,38,38,.3);
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(220,38,38,.35);
}
.auth-btn:active { transform: translateY(0); }

/* ── Footer links ── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}
.auth-footer a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Hint ── */
.auth-hint {
    margin-top: 18px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 12.5px;
    color: #92400e;
    text-align: center;
    line-height: 1.5;
}
.auth-hint i { margin-right: 5px; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
}
