/* --- Page layout --- */
.renew-page {
    max-width: 1080px;
    padding: 40px 15px 60px;
}

/* Single-tile pages, e.g. the reset password email step */
.renew-page.renew-page-narrow {
    max-width: 560px;
}

/* Same title size as the Complaints v2 pages */
.renew-page-header h1 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-color-7);
    text-align: left;
}

/* Both columns stretch, and their last tile fills the space, so the bottoms line up */
.renew-col {
    display: flex;
    flex-direction: column;
}

.renew-col .renew-tile:last-child {
    flex: 1 1 auto;
}

/* --- Tiles --- */
/* Same card recipe as .ui-surface / .validations-panel-card */
.renew-tile {
    background: var(--theme-color-white);
    border: 1px solid #f2f2f2;
    border-radius: 0.55rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.renew-tile-title {
    display: flex;
    align-items: center;
    margin: 0 0 16px;
    font-size: var(--theme-font-3);
    font-weight: 600;
    color: var(--theme-color-6);
    text-align: left;
}

.renew-tile-title i {
    width: 22px;
    margin-right: 8px;
    font-size: var(--theme-font-2);
    color: var(--theme-color-7);
}

.renew-tile-notice .renew-tile-title i {
    color: var(--theme-color-1);
}

.renew-tile p {
    margin: 0 0 8px;
    font-size: var(--theme-font-2);
    color: var(--theme-color-6);
}

/* --- Requirements list --- */
.renew-requirements {
    margin: 0 0 12px;
    padding: 0;
}

.renew-requirements li {
    margin: 0 0 6px;
    list-style: none;
    font-size: var(--theme-font-2);
    color: var(--theme-color-6);
}

.renew-requirements li i {
    width: 20px;
    color: var(--theme-color-2);
}

.renew-tile .renew-hint {
    margin: 0;
    font-size: var(--theme-font-1);
}

/* --- Form fields --- */
.renew-field {
    margin-bottom: 18px;
}

.renew-field label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--theme-font-2);
    font-weight: 600;
    color: var(--theme-color-6);
    text-align: left;
}

.renew-input-wrap {
    position: relative;
}

.renew-page .renew-input-wrap .form-control {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 8px 44px 8px 12px;
    background: var(--theme-color-white);
    border: 1px solid #ced4da;
    border-radius: 0.4rem;
    font-size: var(--theme-font-2);
    font-weight: 400;
    color: var(--theme-color-6);
}

.renew-page .renew-input-wrap .form-control:focus {
    border-color: var(--theme-color-1);
    box-shadow: 0 0 0 0.2rem rgba(218, 119, 62, 0.15);
    outline: none;
}

/* The site-wide .error is added on blur; on this form it only shows after a submit attempt */
.renew-page .pass-renew-form:not(.renew-attempted) .form-control.error {
    background: var(--theme-color-white) !important;
    border-bottom: 1px solid #ced4da !important;
}

.renew-page .pass-renew-form:not(.renew-attempted) .form-control.error:focus {
    border-bottom-color: var(--theme-color-1) !important;
}

/* Same error red as the shared .alert-inline--error chip */
.renew-page .pass-renew-form.renew-attempted .form-control.error {
    background: var(--theme-color-white) !important;
    border: 1px solid #c0392b !important;
    box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.12);
}

.renew-input-wrap .show-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    margin: 0;
    padding: 4px;
    line-height: 1;
    font-size: var(--theme-font-3);
    color: var(--theme-color-7);
    background: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.renew-input-wrap .show-password:hover {
    color: var(--theme-color-6);
}

.renew-input-wrap .show-password:focus-visible {
    outline: 2px solid var(--theme-color-1);
    outline-offset: 1px;
}

/* --- Password strength bar: three segments on a grey track with a word beside them, as on the account page --- */
.renew-page #password-strength-res {
    margin: 8px 0 0;
    font-size: var(--theme-font-1);
    line-height: normal;
    text-align: left;
}

.renew-page #passwordResult {
    position: relative;
    display: flex;
    gap: 4px;
    width: 200px;
    height: 6px;
    margin: 0;
    background: repeating-linear-gradient(90deg, #e5e7eb 0 64px, transparent 64px 68px);
    border-radius: 3px;
}

.renew-page #passwordResult .password-bar {
    flex: 0 0 64px;
    height: 6px;
    margin: 0;
    background: var(--theme-color-4);
    border-radius: 3px;
}

.renew-page #passwordResult .password-bar i {
    display: none;
}

.renew-page #passwordResult:has(.password-good) .password-bar {
    background: var(--theme-color-1);
}

.renew-page #passwordResult:has(.password-strong) .password-bar {
    background: var(--theme-color-2);
}

.renew-page #passwordResult::after {
    content: "Password strength";
    position: absolute;
    top: 50%;
    left: 212px;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: var(--theme-font-1);
    color: var(--theme-color-7);
}

.renew-page #passwordResult:has(.password-weak)::after {
    content: "Weak";
    color: var(--theme-color-4);
}

.renew-page #passwordResult:has(.password-good)::after {
    content: "Fair";
    color: var(--theme-color-1);
}

.renew-page #passwordResult:has(.password-strong)::after {
    content: "Strong";
    color: var(--theme-color-2);
}

.renew-captcha {
    padding: 4px 0 16px;
    text-align: center;
}

/* --- Submit --- */
.renew-submit {
    margin-top: 8px;
    text-align: center;
}

.renew-back-link {
    margin: 0;
    font-size: var(--theme-font-2);
    text-align: center;
}

/* Orange on the complaints v2 routes too, where style-guide.css unsets link colours */
.renew-back-link a,
.renew-back-link a:hover {
    color: var(--theme-color-1, #da773e);
}

.renew-submit .btn-orange {
    min-width: 200px;
    padding: 10px 24px;
    border-radius: 0.4rem;
}

/* --- Pop-ups returned by the controller (errors, success) --- */
.password-error-div,
.password-confirm-modal {
    text-align: center;
}

.password-error-div p {
    margin: 10px 0;
}

.password-error-div span {
    margin-right: 10px;
}

.password-error-div span i {
    font-size: var(--theme-font-4);
}

.password-modal-btn {
    display: block;
    margin: 25px auto 0;
    width: 145px;
    padding: 8px;
    border-radius: 3px;
    font-size: var(--theme-font-3);
}

.password-modal-btn a {
    display: inline-block;
    width: 100%;
    color: var(--theme-color-white);
}

.password-modal-btn a:hover {
    color: var(--theme-color-white);
    border-bottom: none;
}

.password-confirm-modal span i {
    color: var(--theme-color-2);
    font-size: var(--theme-font-5);
    display: inline;
}
