/**
 * Alumniyat Membership — Front-end Styles
 *
 * Palette:
 *   --alum-brown:       #8B5E3C
 *   --alum-gold:        #C9A227
 *   --alum-deep-brown:  #5C3A21
 *   --alum-beige:       #F5E6D3
 */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --alum-brown: #8B5E3C;
    --alum-gold: #C9A227;
    --alum-deep-brown: #5C3A21;
    --alum-beige: #F5E6D3;
    --alum-white: #fff;
    --alum-text: #3a2a1a;
    --alum-text-light: #6b5a4a;
    --alum-error: #b33a3a;
    --alum-error-bg: #fce8e8;
    --alum-success: #2a7a3a;
    --alum-success-bg: #e8fce8;
    --alum-radius: 12px;
    --alum-shadow: 0 4px 24px rgba(92, 58, 33, 0.12);
}

/* ── Card container ─────────────────────────────────────── */
.alum-card {
    direction: rtl;
    text-align: right;
    max-width: 640px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: var(--alum-white, #fff);
    border-radius: var(--alum-radius, 12px);
    box-shadow: var(--alum-shadow, 0 4px 24px rgba(92, 58, 33, 0.12));
    border-top: 4px solid var(--alum-gold, #C9A227);
    font-family: "Tajawal", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
    color: var(--alum-text, #3a2a1a);
    line-height: 1.7;
}

.alum-card__title {
    text-align: center;
    color: var(--alum-deep-brown, #5C3A21);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ── Membership badge ───────────────────────────────────── */
.alum-membership-badge {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--alum-beige, #F5E6D3);
    border-radius: 8px;
    border: 1px solid var(--alum-gold, #C9A227);
}

.alum-badge-label {
    color: var(--alum-text-light, #6b5a4a);
    margin-left: 0.4rem;
}

.alum-badge-value {
    font-weight: 700;
    color: var(--alum-deep-brown, #5C3A21);
}

/* ── Fieldsets & legends ────────────────────────────────── */
.alum-fieldset {
    border: 1px solid var(--alum-beige, #F5E6D3);
    border-radius: 8px;
    padding: 1.25rem 1rem 1rem;
    margin-bottom: 1.5rem;
}

.alum-fieldset legend {
    color: var(--alum-brown, #8B5E3C);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0 0.5rem;
}

/* ── Fields ──────────────────────────────────────────────── */
.alum-field {
    margin-bottom: 1rem;
}

.alum-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--alum-text, #3a2a1a);
    font-size: 0.95rem;
}

.alum-field label .required {
    color: var(--alum-error, #b33a3a);
}

.alum-field input[type="text"],
.alum-field input[type="email"],
.alum-field input[type="url"],
.alum-field input[type="password"],
.alum-field select,
.alum-field textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d5c4b0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--alum-text, #3a2a1a);
    background: var(--alum-white, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
    box-sizing: border-box;
}

.alum-field input:focus,
.alum-field select:focus,
.alum-field textarea:focus {
    outline: none;
    border-color: var(--alum-gold, #C9A227);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.alum-field input:disabled {
    background: #f0ece7;
    color: var(--alum-text-light, #6b5a4a);
    cursor: not-allowed;
}

.alum-field textarea {
    resize: vertical;
    min-height: 80px;
}

.alum-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--alum-text-light, #6b5a4a);
}

/* ── Two-column row ──────────────────────────────────────── */
.alum-field-row {
    display: flex;
    gap: 1rem;
}

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

@media (max-width: 480px) {
    .alum-field-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Button ──────────────────────────────────────────────── */
.alum-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--alum-white, #fff);
    background: linear-gradient(135deg, var(--alum-brown, #8B5E3C), var(--alum-deep-brown, #5C3A21));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

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

.alum-btn:active {
    transform: scale(0.985);
}

/* ── Messages ────────────────────────────────────────────── */
.alum-errors {
    background: var(--alum-error-bg, #fce8e8);
    border: 1px solid var(--alum-error, #b33a3a);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: var(--alum-error, #b33a3a);
}

.alum-errors p {
    margin: 0.25rem 0;
}

.alum-success {
    background: var(--alum-success-bg, #e8fce8);
    border: 1px solid var(--alum-success, #2a7a3a);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    color: var(--alum-success, #2a7a3a);
}

.alum-success p {
    margin: 0.25rem 0;
}

.alum-notice {
    text-align: center;
}

.alum-notice a {
    color: var(--alum-brown, #8B5E3C);
    font-weight: 600;
    text-decoration: underline;
}

/* ── Logout link ─────────────────────────────────────────── */
.alum-logout {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--alum-beige, #F5E6D3);
}

.alum-logout a {
    color: var(--alum-error, #b33a3a);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.alum-logout a:hover {
    color: #8a1a1a;
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
    .alum-card {
        margin: 1rem 0.5rem;
        padding: 1.5rem 1rem;
    }
}
