/* Marketplace Authentication Styles - Theme-aware */

.auth-page {
    background: var(--theme-bg-secondary, var(--bg-secondary));
    min-height: 100vh;
}

.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--theme-bg-primary, var(--bg-primary));
    border-radius: 12px;
    box-shadow: 0 4px 24px var(--theme-shadow-dark, rgba(0, 0, 0, 0.1));
    border: 1px solid var(--theme-border-light, transparent);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    color: var(--theme-text-heading, var(--text-primary));
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--theme-text-secondary, var(--text-secondary));
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--theme-text-primary, var(--text-primary));
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--theme-border-medium, var(--border-medium, #D1D5DB));
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--theme-input-bg, var(--bg-primary));
    color: var(--theme-input-text, var(--text-primary));
}

.form-group input::placeholder {
    color: var(--theme-input-placeholder, var(--text-tertiary));
}

.form-group input:focus {
    outline: none;
    border-color: var(--theme-text-accent, var(--color-primary));
    box-shadow: 0 0 0 3px var(--theme-shadow-accent, rgba(16, 185, 129, 0.1));
}

.auth-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--theme-btn-primary-bg, var(--color-primary));
    color: var(--theme-btn-primary-text, white);
    border: 1px solid var(--theme-btn-primary-border, transparent);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--theme-text-secondary, var(--text-secondary));
    font-size: 14px;
}

.auth-footer a {
    color: var(--theme-text-accent, var(--color-primary));
    text-decoration: none;
    font-weight: 500;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--theme-text-muted, var(--text-tertiary));
    font-size: 14px;
}

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

.auth-divider span {
    padding: 0 16px;
    background: var(--theme-bg-primary, var(--bg-primary));
}

.error-message,
#login-error,
#register-error {
    background: var(--color-error-light, #FEF2F2);
    border: 1px solid var(--theme-error, #FECACA);
    color: var(--theme-error, #DC2626);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.success-message,
#reset-success {
    background: var(--color-success-light, #F0FDF4);
    border: 1px solid var(--theme-success, #BBF7D0);
    color: var(--theme-success, #16A34A);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.marketplace-auth-error {
    background: var(--color-error-light, #FEF2F2);
    border: 1px solid var(--theme-error, #FECACA);
    color: var(--theme-error, #DC2626);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--theme-text-secondary, var(--text-secondary));
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-options a {
    color: var(--theme-text-accent, var(--color-primary));
    text-decoration: none;
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}
