/* ============================================
   HOWDY SYNDICATION — Auth Styles
   ============================================ */

/* ===== AUTH OVERLAY ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    min-height: 100vh;
    padding: 20px;
}

.auth-overlay.secondary-gradient {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

/* ===== AUTH CARD ===== */
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    animation: slideUp 0.4s ease;
}

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

/* ===== AUTH HEADER ===== */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== LOGIN FORM ===== */
.login-form,
.signup-form,
.access-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 177, 181, 0.12);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-select {
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 177, 181, 0.12);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.form-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 2px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.form-check-label a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-check-label a:hover {
    color: var(--accent-dark);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-submit {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 177, 181, 0.3);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-action {
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    background: #f5f6f8;
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-action:hover {
    background: #e5e7eb;
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    opacity: 0.5;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider-text {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: var(--accent-dark);
}

/* ===== SIGNUP FORM (Multi-step) ===== */
.signup-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 8px;
}

.step-indicator {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition: background 0.3s;
}

.step-indicator.active {
    background: var(--accent);
}

.step-indicator.completed {
    background: var(--success);
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.step-actions .btn-secondary-action {
    flex: 1;
}

.step-actions .btn-submit {
    flex: 1;
}

/* ===== TAG SELECTOR GROUPS ===== */
.tag-selector-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-group-label {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-option {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    background: #fff;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.tag-option:hover {
    border-color: var(--accent-light);
    color: var(--accent);
}

.tag-option.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.tag-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DISCLAIMER TEXT AREA ===== */
.disclaimer-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disclaimer-label {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.disclaimer-text {
    height: 120px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(16, 177, 181, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-y: auto;
    resize: none;
}

.disclaimer-text::-webkit-scrollbar {
    width: 6px;
}

.disclaimer-text::-webkit-scrollbar-track {
    background: transparent;
}

.disclaimer-text::-webkit-scrollbar-thumb {
    background: rgba(16, 177, 181, 0.2);
    border-radius: 3px;
}

.disclaimer-text::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 177, 181, 0.3);
}

/* ===== PENDING APPROVAL SCREEN ===== */
.pending-approval-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.pending-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 177, 181, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.pending-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pending-message {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 360px;
}

.pending-email {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 12px;
}

.pending-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.pending-actions .btn-secondary-action {
    width: 100%;
}

.pending-status-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===== ACCESS REQUEST FORM ===== */
.access-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.access-form-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.access-form-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.access-form-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.access-fieldset {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: rgba(16, 177, 181, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.access-fieldset-title {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.access-field-row {
    display: flex;
    gap: 12px;
}

.access-field-row .form-group {
    flex: 1;
}

.access-textarea {
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    min-height: 100px;
    resize: vertical;
    transition: all 0.2s;
}

.access-textarea::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.access-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 177, 181, 0.12);
}

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

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .form-input,
    .form-select,
    .access-textarea {
        font-size: 16px;
    }

    .tag-selector {
        gap: 6px;
    }

    .tag-option {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn-secondary-action,
    .step-actions .btn-submit {
        width: 100%;
    }

    .disclaimer-text {
        height: 100px;
    }

    .access-field-row {
        flex-direction: column;
    }
}
