body {
    background-color: #f4f1e9;
}

.page-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 60px;
    position: relative;
}

.forgot-skeleton {
    position: absolute;
    right: 35px;
    bottom: 45px;
    height: clamp(300px, calc(100vh - 100px), 650px);
    width: clamp(200px, 28vw, 520px);
    object-fit: contain;
    object-position: bottom right;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1400px) {
    .forgot-skeleton {
        width: clamp(180px, 24vw, 420px);
        height: clamp(280px, calc(100vh - 100px), 550px);
    }
}

@media (max-width: 1100px) {
    .forgot-skeleton {
        width: clamp(150px, 20vw, 320px);
        height: clamp(250px, calc(100vh - 100px), 450px);
    }
}

@media (max-width: 768px) {
    .forgot-skeleton {
        display: none;
    }
}

.forgot-wrapper {
    display: flex;
    flex-direction: column;
}

.forgot-title {
    font-size: 35px;
    letter-spacing: 2px;
    color: #333;
    border-left: 5px solid #c03a45;
    padding-left: 15px;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-left: 115px;
    line-height: 1;
    text-transform: uppercase;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    margin-top: 20px;
}

.forgot-form {
    width: 100%;
    max-width: 650px;
    margin-top: 20px;
    margin-left: 0;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 4px;
    margin-left: 0;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.form-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.form-input {
    width: 330px;
    height: 33px;
    padding: 0 36px 0 14px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 0;
    font-size: 14px;
    color: #2a2a2a;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #999;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.form-input::placeholder {
    color: #b0a89e;
    font-size: 14px;
}

.form-valid-icon {
    position: absolute;
    right: 10px;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-valid-icon.invalid {
    color: #c03a45;
}

.form-valid-icon.valid {
    color: #3aab5a;
}

.form-hint {
    font-size: 11px;
    color: #333;
    margin-left: 115px;
    margin-bottom: 12px;
    line-height: 1.5;
    white-space: pre-line;
}

.form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-left: 60px;
    margin-top: 15px;
    padding-right: 0;
    width: 385px;
}

.form-submit-btn {
    width: 150px;
    height: 50px;
    background: #aaa;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s ease;
}

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

.form-submit-btn:not(:disabled):hover {
    background: #e6552e;
}

.form-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.form-login-row {
    display: flex;
    justify-content: flex-end;
    margin-left: 60px;
    margin-top: 10px;
    width: 385px;
    font-size: 12px;
    color: #333;
}

.form-login-row a {
    color: #c03a45;
    text-decoration: none;
    margin-left: 5px;
}

.form-login-row a:hover {
    text-decoration: underline;
}

/* Long titles (register/resend.php): the wrapper stays as wide as the form
   (label 100 + gap 15 + input 330) so the page centres on the form, and the
   title wraps across that width instead of stretching the column. */
.forgot-wrapper--narrow {
    width: 445px;
    max-width: 100%;
}

.forgot-wrapper--narrow .forgot-title {
    margin-left: 0;
    font-size: 28px;
    line-height: 1.15;
    overflow-wrap: break-word;
}
