/* Auth Pages */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

/* Logo */
.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    height: 28px;
    width: auto;
}

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

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.auth-header p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    margin-bottom: 5px;
}

.auth-field .form-control,
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition-fast);
    box-shadow: none;
    outline: none;
}

.auth-field .form-control:focus,
.auth-field input:focus {
    border-color: var(--color-text);
    box-shadow: none;
    outline: none;
}

.auth-field .form-control::placeholder,
.auth-field input::placeholder {
    color: var(--color-text-placeholder);
}

/* Password field with toggle */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .form-control,
.auth-password-wrap input {
    padding-right: 40px;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.auth-password-toggle:hover {
    color: var(--color-text);
}

/* Field row (side by side) */
.auth-field-row {
    display: flex;
    gap: 10px;
}

.auth-field-row .auth-field {
    flex: 1;
}

/* Error states */
.auth-field .field-error {
    font-size: var(--text-xs);
    color: var(--color-danger-text);
    margin-top: 4px;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    line-height: var(--leading-normal);
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border);
}

.auth-alert-error {
    border-left-color: var(--color-danger);
}

/* Forgot password link */
.auth-forgot {
    display: block;
    text-align: right;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    margin-top: 6px;
}

.auth-forgot:hover {
    color: var(--color-text);
    text-decoration: none;
}

/* Submit */
.auth-submit {
    width: 100%;
    margin-top: 20px;
}

/* Checkbox / Terms */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.auth-check label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.auth-check a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-check a:hover {
    color: var(--color-text);
}

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

.auth-footer a {
    color: var(--color-text);
    font-weight: var(--weight-medium);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Status pages (verification, reset done, etc.) */
.auth-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
}

.auth-status-icon-success {
    background: var(--color-success-light);
    color: var(--color-success-text);
}

.auth-status-icon-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-text);
}

.auth-status-icon-error {
    background: var(--color-danger-light);
    color: var(--color-danger-text);
}

.auth-status-icon-info {
    background: var(--color-hover);
    color: var(--color-text-muted);
}

/* Help text */
.auth-help {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 3px;
    line-height: 1.4;
}

.auth-help ul {
    margin: 0;
    padding-left: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-shell { padding: 24px 16px; }
    .auth-card { padding: 24px 20px; }
    .auth-field-row { flex-direction: column; gap: 0; }
}
