/* Auth forms (login / register / forgotten / set password) */
.auth-form-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px;
}

.auth-form-wrapper.narrow {
    max-width: 480px;
}

.auth-form .form-row {
    margin-bottom: 16px;
}

.auth-form .form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="number"],
.auth-form input[type="password"],
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.auth-form input[type="checkbox"] {
    margin-right: 6px;
}

.auth-form .form-actions {
    text-align: center;
}

.auth-form .submit-btn {
    background: #569031;
    color: #fff;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.auth-form .submit-btn:hover {
    background: #467725;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #569031;
    font-weight: 500;
}

.auth-links .secondary {
    margin-top: 8px;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Profile */
.profile-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    align-items: center;
}

.profile-nav-link {
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.profile-nav-link.active {
    background: #569031;
    color: #fff;
}

.profile-nav-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.profile-nav-actions .btn-admin {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #569031;
    background: #569031;
    color: #fff;
    text-decoration: none;
}

.profile-nav-actions .btn-logout {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.profile-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.profile-card h3 {
    margin-top: 0;
}

.profile-card .meta {
    color: #666;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.badge-role {
    display: inline-block;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 4px;
}

.badge-role.admin { background: #e74c3c; }
.badge-role.lecturer { background: #3498db; }
.badge-role.member { background: #569031; }
.badge-role.user { background: #95a5a6; }
.badge-role.active { background: #27ae60; }
.badge-role.canceled { background: #95a5a6; }
.badge-role.paid { background: #2ecc71; }
.badge-role.unpaid { background: #f39c12; }
.badge-role.type-course { background: #569031; }
.badge-role.type-action { background: #E67E22; }

.family-invite-box {
    background: #f0f8ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 20px;
}

.family-invite-code {
    font-size: 24px;
    font-weight: bold;
    background: #fff;
    padding: 10px 16px;
    display: inline-block;
    border-radius: 4px;
    letter-spacing: 2px;
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
}

.registrations-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #ddd;
}

.registrations-table th.text-center { text-align: center; }
.registrations-table th.text-right { text-align: right; }

.registrations-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.registrations-table tr.canceled {
    opacity: 0.5;
}

.btn-link-danger {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.link-primary {
    color: #569031;
    font-weight: 500;
}

.link-primary:hover {
    color: #467725;
    text-decoration: underline;
}
