/* "Forgot member code" link + modal — shared by the event and giftcard forms.
   Mirrors the surrounding form design: dark green surface (#111E0A), gold
   accents (#ffd700), white text and the green CTA gradient of .login-btn. */

.forgot-code-hint {
    margin: 0.5rem 0 0;
}

.forgot-code-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #ffd700;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 215, 0, 0.6);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.forgot-code-link:hover,
.forgot-code-link:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
}

/* Overlay */
.forgot-code-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.forgot-code-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dialog — same surface colour as .content-section, gold framed */
.forgot-code-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background-color: #111E0A;
    color: #fff;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.forgot-code-dialog h3 {
    margin: 0 0 0.75rem;
    padding-left: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff;
    border-left: 4px solid #e31818;
}

.forgot-code-dialog > p {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.forgot-code-dialog .form-group {
    margin-bottom: 1rem;
}

.forgot-code-dialog label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffd700;
}

/* Inputs mirror .member-code-input input, but left-aligned for names/e-mails */
.forgot-code-dialog input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ffd700;
    border-radius: 6px;
    background-color: rgba(17, 30, 10, 0.8);
    color: #fff;
    font-size: 1rem;
}

/* Placeholder needs an explicit colour AND opacity: Firefox applies its own
   opacity: 0.54 by default, which washes the text out on the dark surface. */
.forgot-code-dialog input::placeholder {
    color: #b9c4ae;
    opacity: 1;
}

.forgot-code-dialog input::-webkit-input-placeholder {
    color: #b9c4ae;
    opacity: 1;
}

.forgot-code-dialog input::-moz-placeholder {
    color: #b9c4ae;
    opacity: 1;
}

.forgot-code-dialog input:-ms-input-placeholder {
    color: #b9c4ae;
    opacity: 1;
}

.forgot-code-dialog input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.forgot-code-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.forgot-code-close:hover,
.forgot-code-close:focus-visible {
    color: #ffd700;
}

/* Status message — same left-border treatment as .member-status */
.forgot-code-status:not(:empty) {
    margin-bottom: 1rem;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 0.92rem;
    line-height: 1.45;
}

.forgot-code-status.success {
    background-color: rgba(96, 179, 71, 0.15);
    border-left-color: #60b347;
    color: #a8e88c;
}

.forgot-code-status.error {
    background-color: rgba(227, 24, 24, 0.15);
    border-left-color: #e31818;
    color: #ffa8a8;
}

.forgot-code-dialog .login-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    .forgot-code-dialog {
        padding: 1.35rem;
    }
}
