/* ───────────────────────────────────────────────────
   PRD Generator — Auth Pages
   ─────────────────────────────────────────────────── */

:root {
    --accent: #5B5FEF;
    --accent-hover: #4F46E5;
    --ink: #171717;
    --ink-muted: #707070;
    --paper: #F8F8F7;
    --surface: #FFFFFF;
    --border: #EBEBE6;
    --danger: #DC2626;
    --success: #059669;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F8F7;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 95, 239, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(91, 95, 239, 0.04), transparent);
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    animation: authFadeIn 0.5s var(--ease-out);
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Branding */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.logo-mark {
    font-size: 2.8em;
    display: block;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.75em;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 0.95em;
    color: var(--ink-muted);
    font-weight: 400;
}

/* Card */
.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 32px;
    overflow: hidden;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: #F4F4F2;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-weight: 600;
}

.auth-tab:hover:not(.active) {
    color: var(--ink);
}

/* Messages */
.auth-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-error {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}

.auth-success {
    background: #ECFDF5;
    color: var(--success);
    border: 1px solid #A7F3D0;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.field {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95em;
    color: var(--ink);
    background: #FAFAF9;
    transition: all 0.2s ease;
    outline: none;
}

.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 95, 239, 0.1);
    background: var(--surface);
}

.field-input::placeholder {
    color: #B0B0AA;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .field-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 0.85em;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.password-toggle:hover { opacity: 1; }

.eye-icon { pointer-events: none; }

/* Submit */
.btn-auth {
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-auth:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 95, 239, 0.25);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn-auth:hover .btn-arrow {
    transform: translateX(3px);
}

/* Footer */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.82em;
    color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .auth-title { font-size: 1.5em; }
}
