/* Authentication Styles */

/* Auth page layout */
.auth-body {
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Login/Register Container */
.auth-container {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.register-container {
    max-width: 600px;
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-right: var(--space-sm);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 10px;
}

/* Auth Forms */
.auth-form {
    margin-top: 20px;
}


/* Auth Buttons */
.auth-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.auth-button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Auth Options */
.auth-options {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.auth-options a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-options a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Flash Messages */
.flash-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid var(--error);
}

.flash-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

/* Role Selector */
.role-selector {
    margin-bottom: 30px;
    text-align: center;
}

.role-label {
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.role-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.role-option {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--divider);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    background-color: white;
}

.role-option:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.role-option.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* Progress steps styles moved to components.css */

/* Registration Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.form-buttons .btn {
    flex: 1;
}

/* Auth Info Box (register page) */
.auth-info-box {
    background-color: #eff6ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.auth-info-box p {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Auth Notice bar */
.auth-notice {
    border-left: 4px solid #2563eb;
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.auth-notice p {
    margin: 0;
    font-size: 0.9em;
}

/* Auth Warning bar (e.g. wrong-audience notice on register) */
.auth-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-left: 4px solid #d97706;
    padding: 12px 16px;
    background-color: #fffbeb;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.auth-warning .auth-icon-sm {
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0;
    color: #b45309;
}

.auth-warning p {
    margin: 0;
    font-size: 0.9em;
    color: #92400e;
}

/* Inline icon sizing */
.auth-icon-sm {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.auth-icon-lg {
    width: 48px;
    height: 48px;
    color: #dc2626;
}

/* Role/feature checklist */
.auth-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9em;
}

/* Small checklist icons (password requirements) */
.auth-checklist-item {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Consent checkbox row */
.auth-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.auth-consent-row input[type="checkbox"] {
    margin-top: 3px;
}

.auth-consent-row span {
    font-size: 0.9em;
}

/* Placeholder for TOS/Privacy links until real pages exist */
.auth-link-placeholder {
    text-decoration: underline;
    color: inherit;
}

/* Helper text below inputs */
.auth-helper-text {
    color: #6b7280;
    font-size: 0.85em;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Error text (hidden by default, shown via JS) */
.auth-error-text {
    display: none;
    color: #dc2626;
    font-size: 0.85em;
    margin-top: 4px;
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 40px;
}

/* Password visibility toggle */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.password-toggle-btn i,
.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

/* Password requirements list */
.auth-requirements {
    margin-top: 8px;
    font-size: 0.85em;
}

/* Match status text */
.auth-match-status {
    margin-top: 4px;
    font-size: 0.85em;
    display: none;
}

/* Error icon wrapper */
.auth-error-icon {
    margin: 16px 0;
}

/* Centered action button area */
.auth-action-center {
    text-align: center;
    margin-top: 20px;
}

/* Auth button as link */
a.auth-button {
    display: inline-block;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .role-options {
        flex-direction: column;
    }
    
    .role-option {
        margin: 5px 0;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}