/* ─── PCW Identity Pages — Shared Styles ───────────────────────────────────
   Used by all ASP.NET Identity pages (login flows, password reset, 2FA, etc.)
   ─────────────────────────────────────────────────────────────────────────── */

/* Page wrapper */
.pcw-auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--pcw-bg) 0%, var(--pcw-surface2) 100%);
    padding: 40px 20px;
}

.pcw-auth-container {
    width: 100%;
    max-width: 480px;
}

/* Card */
.pcw-auth-card {
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-bottom: 3px solid var(--pcw-accent);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.pcw-auth-card--error {
    border-bottom-color: #f44336;
}

.pcw-auth-card--success {
    border-bottom-color: #4caf50;
}

.pcw-auth-card--warning {
    border-bottom-color: #ff9800;
}

/* Header */
.pcw-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.pcw-auth-icon {
    width: 64px;
    height: 64px;
    color: var(--pcw-accent);
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pcw-auth-icon--error {
    color: #f44336;
}

.pcw-auth-icon--success {
    color: #4caf50;
}

.pcw-auth-icon--warning {
    color: #ff9800;
}

.pcw-auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pcw-accent);
    margin: 0 0 8px 0;
}

.pcw-auth-title--error {
    color: #f44336;
}

.pcw-auth-subtitle {
    color: var(--pcw-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Body text (info/status pages) */
.pcw-auth-body {
    text-align: center;
    margin-bottom: 28px;
}

.pcw-auth-body p {
    color: var(--pcw-text-muted);
    line-height: 1.7;
    margin: 0 0 10px 0;
}

/* ─── Form Elements ─────────────────────────────────────────────────────────── */

.pcw-auth-form {
    margin-bottom: 24px;
}

.pcw-form-group {
    margin-bottom: 20px;
}

.pcw-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pcw-text);
    margin-bottom: 8px;
}

.pcw-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--pcw-bg);
    border: 1px solid var(--pcw-border);
    border-radius: 8px;
    color: var(--pcw-text);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.pcw-form-input:focus {
    outline: none;
    border-color: var(--pcw-accent);
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}

.pcw-form-group--checkbox {
    margin-bottom: 24px;
}

.pcw-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--pcw-text);
    font-size: 0.9375rem;
    gap: 8px;
}

.pcw-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.pcw-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.pcw-btn--primary {
    background: var(--pcw-accent);
    color: #0a0e14;
}

.pcw-btn--primary:hover {
    background: #00b8ef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--pcw-shadow);
}

.pcw-btn--block {
    width: 100%;
}

.pcw-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── Alerts ────────────────────────────────────────────────────────────────── */

.pcw-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.pcw-alert--error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.pcw-alert--success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #66bb6a;
}

.pcw-alert--info {
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: var(--pcw-accent);
}

/* ─── Validation ────────────────────────────────────────────────────────────── */

.pcw-validation-errors {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.pcw-validation-message {
    color: #f44336;
    font-size: 0.8125rem;
    margin-top: 4px;
    display: block;
}

/* ─── Links ─────────────────────────────────────────────────────────────────── */

.pcw-auth-links {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--pcw-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcw-auth-link {
    color: var(--pcw-accent);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.pcw-auth-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
    .pcw-auth-card {
        padding: 28px 20px;
    }

    .pcw-auth-title {
        font-size: 1.6rem;
    }
}
