/* ==========================================================================
   Forgot / reset password - scoped to .auth-card so sign-in / sign-up are
   untouched. Matches the dark auth journey (gold #BDA371, #353535 inputs).
   ========================================================================== */

.auth-card {
    max-width: 440px;
}

.auth-card .auth-lead {
    margin: 10px 0 0;
    color: #cfcabf;
    font-size: 15px;
    line-height: 1.55;
}

.auth-card .auth-lead strong {
    color: #fff;
    word-break: break-word;
}

.auth-card .auth-msg {
    margin: 18px 0 0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* Form */
.auth-card .auth-form {
    display: grid;
    gap: 18px;
}

.auth-card .auth-field {
    margin: 0;
    display: block;
}

.auth-card .auth-label {
    display: block;
    margin-bottom: 7px;
    color: #e9e4d8;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.auth-card .auth-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background-color: #353535;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-card .auth-input::placeholder {
    color: #9a948a;
}

.auth-card .auth-input:focus,
.auth-card .auth-input:focus-visible {
    outline: none;
    border-color: #BDA371;
    box-shadow: 0 0 0 3px rgba(189, 163, 113, .28);
}

.auth-card .auth-field.is-invalid .auth-input {
    border-color: #e5736b;
    box-shadow: 0 0 0 3px rgba(229, 115, 107, .22);
}

/* Password field with show/hide */
.auth-card .auth-input-wrap {
    position: relative;
}

.auth-card .auth-input-wrap .auth-input {
    padding-right: 48px;
}

.auth-card .auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    color: #b7b1a6;
    padding: 0;
}

.auth-card .auth-eye:hover {
    color: #BDA371;
}

.auth-card .auth-eye::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat var(--eye);
    mask: center / contain no-repeat var(--eye);
    --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.auth-card .auth-eye[aria-pressed="true"]::before {
    --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.9 17.9A10.4 10.4 0 0 1 12 19c-7 0-11-7-11-7a18 18 0 0 1 5.1-5.9m3-1A10.4 10.4 0 0 1 12 5c7 0 11 7 11 7a18 18 0 0 1-2.2 3.2M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

/* Strength meter */
.auth-card .auth-meter {
    height: 5px;
    margin-top: 8px;
    border-radius: 3px;
    background: #4a4a4a;
    overflow: hidden;
}

.auth-card .auth-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .2s ease, background-color .2s ease;
}

.auth-card .auth-meter.is-weak span   { width: 33%;  background: #e5736b; }
.auth-card .auth-meter.is-ok span     { width: 66%;  background: #d9a441; }
.auth-card .auth-meter.is-strong span { width: 100%; background: #6cc38a; }

.auth-card .auth-field-msg {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.45;
    min-height: 1px;
}

.auth-card .auth-field-msg.is-error { color: #f0a29b; }
.auth-card .auth-field-msg.is-ok    { color: #8bd3a3; }

/* Buttons */
.auth-card .auth-submit {
    margin-top: 4px;
}

.auth-card .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.auth-card .auth-btn--primary {
    background-color: #BDA371;
    color: #121212;
}

.auth-card .auth-btn--primary:hover {
    background-color: #cdb582;
}

.auth-card .auth-btn[disabled],
.auth-card .auth-btn.is-loading {
    opacity: .75;
    pointer-events: none;
    position: relative;
}

.auth-card .auth-btn.is-loading .auth-btn__label {
    visibility: hidden;
}

.auth-card .auth-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(18, 18, 18, .35);
    border-top-color: #121212;
    animation: auth-spin .7s linear infinite;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-card .auth-link {
    display: inline-block;
    background: none;
    border: 0;
    padding: 6px 0;
    color: #BDA371;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-card .auth-link:hover {
    color: #d8c08a;
}

.auth-card .auth-foot {
    margin-top: 20px;
    color: #cfcabf;
    font-size: 14px;
    text-align: center;
}

.auth-card .auth-foot a {
    color: #BDA371;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Success / error states */
.auth-card .auth-success {
    text-align: center;
}

.auth-card .auth-success__icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(189, 163, 113, .14);
    color: #BDA371;
}

.auth-card .auth-success__icon svg {
    width: 32px;
    height: 32px;
}

.auth-card .auth-success__icon--done {
    background: rgba(108, 195, 138, .16);
    color: #6cc38a;
}

.auth-card .auth-success__icon--warn {
    background: rgba(229, 115, 107, .16);
    color: #e5736b;
}

.auth-card .auth-success .sign-title {
    justify-content: center;
}

.auth-card .auth-success .auth-lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
}

.auth-card .auth-tips {
    list-style: none;
    margin: 16px auto 0;
    padding: 0;
    max-width: 340px;
    text-align: left;
    display: grid;
    gap: 8px;
}

.auth-card .auth-tips li {
    position: relative;
    padding-left: 22px;
    color: #b7b1a6;
    font-size: 13.5px;
    line-height: 1.5;
}

.auth-card .auth-tips li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #BDA371;
}

.auth-card .auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

/* On wider screens the auth card sits centred next to the magazine panel */
@media (max-width: 767px) {
    .auth-card {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card .auth-btn.is-loading::after { animation: none; }
}

/* The theme forces white on buttons; the gold primary needs near-black text
   for contrast (white on #BDA371 is only 2.4:1). */
.auth-card .auth-btn--primary,
.auth-card .auth-btn--primary .auth-btn__label {
    color: #121212 !important;
}
