/**
 * IG User Login — base form styles
 *
 * These are intentionally minimal. Theme stylesheets should override them.
 * All selectors are scoped under .ig-auth-wrap to avoid conflicts.
 */

.ig-auth-wrap {
    max-width: 480px;
    margin: 0 auto;
}

/* Notices */
.ig-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.ig-notice--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.ig-notice--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* Form layout */
.ig-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ig-form__row {
    display: flex;
    gap: 16px;
}

.ig-form__row .ig-form__field {
    flex: 1;
}

.ig-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ig-form__field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ig-form__field input[type="email"],
.ig-form__field input[type="password"],
.ig-form__field input[type="text"],
.ig-form__field input[type="url"],
.ig-form__field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.ig-form__field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

/* Actions */
.ig-form__actions {
    margin-top: 4px;
}

/* Buttons */
.ig-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s;
}

.ig-btn--primary {
    background: #0073aa;
    color: #fff;
    width: 100%;
    text-align: center;
}

.ig-btn--primary:hover {
    background: #005f8d;
    color: #fff;
}

.ig-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

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

/* Links row */
.ig-form__links {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.ig-form__links a {
    color: #0073aa;
    text-decoration: none;
}

.ig-form__links a:hover {
    text-decoration: underline;
}

.ig-form__description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .ig-form__row {
        flex-direction: column;
    }
}
