/* 忘記密碼頁面-start */
.forget-password-section {
    padding: 0 0 88px;
    background: #ffffff;
    border-top: 1px solid rgba(24, 24, 24, 0.08);

    .my-container {
        max-width: 1200px;
    }

    .forget-password-card {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 40px 44px 44px;
        border-radius: 16px;
        background: #ffffff;
        /* border: 1px solid rgba(24, 24, 24, 0.08);
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04); */

        .forget-password-card__head {
            margin-bottom: 28px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(24, 24, 24, 0.08);
            text-align: left;

            .forget-password-card__title {
                margin: 0 0 8px;
                font-size: 32px;
                font-weight: 600;
                line-height: 1.2;
                color: var(--black-color);
            }

            .forget-password-card__subtitle {
                margin: 0;
                font-size: 14px;
                line-height: 1.6;
                color: #7b7b7b;

                .forget-password-card__subtitle-link {
                    display: inline-block;
                    margin-left: 6px;
                    color: var(--main-color);
                    font-weight: 600;
                    text-decoration: none;

                    &:hover {
                        color: var(--yellow-color);
                    }
                }
            }
        }

        .forget-password-form {
            .forget-password-form__group {
                margin-bottom: 28px;

                .forget-password-form__group-title {
                    margin: 0 0 16px;
                    font-size: 15px;
                    font-weight: 600;
                    color: var(--black-color);
                }

                .forget-password-form__group-body {
                    display: flex;
                    flex-direction: column;
                    gap: 16px;

                    .forget-password-form__field-row {
                        display: grid;
                        gap: 16px;
                        width: 100%;

                        &.forget-password-form__field-row--password {
                            grid-template-columns: repeat(2, minmax(0, 1fr));
                        }

                        .forget-password-form__field {
                            margin-bottom: 0;
                            min-width: 0;
                        }
                    }

                    .forget-password-form__password-rules {
                        margin-top: -4px;

                        .forget-password-form__password-rules-list {
                            display: grid;
                            grid-template-columns: repeat(2, minmax(0, 1fr));
                            gap: 8px 16px;
                            margin: 0;
                            padding: 0;
                            list-style: none;

                            .forget-password-form__password-rule {
                                position: relative;
                                padding-left: 20px;
                                font-size: 12px;
                                line-height: 1.5;
                                color: #9ca3af;
                                transition: color 0.2s ease;

                                &::before {
                                    content: "";
                                    position: absolute;
                                    left: 0;
                                    top: 4px;
                                    width: 8px;
                                    height: 8px;
                                    background-color: #18181826;
                                    border-radius: 50%;
                                    transition: border-color 0.2s ease, background 0.2s ease;
                                }

                                &.is-valid {
                                    color: #16a34a;

                                    &::before {
                                        /* border-color: #16a34a; */
                                        background: #16a34a;
                                        /* box-shadow: inset 0 0 0 2px #ffffff; */
                                    }
                                }

                                &.is-invalid {
                                    color: #dc2626;

                                    &::before {
                                        /* border-color: #dc2626; */
                                        background-color: #dc2626;
                                    }
                                }
                            }
                        }
                    }

                    .forget-password-form__field {
                        margin-bottom: 0;

                        .forget-password-form__label {
                            display: block;
                            margin-bottom: 8px;
                            font-size: 13px;
                            font-weight: 400;
                            color: #7b7b7b;
                        }

                        .forget-password-form__input-wrap {
                            position: relative;

                            &.forget-password-form__input-wrap--code {
                                flex: 1;
                                min-width: 0;
                            }

                            .forget-password-form__input {
                                width: 100%;
                                min-height: 48px;
                                padding: 0 14px;
                                border: 1px solid rgba(24, 24, 24, 0.16);
                                border-radius: 10px;
                                background: #ffffff;
                                font-size: 15px;
                                font-weight: 400;
                                color: var(--black-color);
                                outline: none;
                                transition: border-color 0.2s ease, box-shadow 0.2s ease;

                                &:focus {
                                    border-color: rgba(24, 24, 24, 0.35);
                                    box-shadow: none;
                                }

                                &::placeholder {
                                    color: #b0b5bf;
                                }
                            }
                        }

                        .forget-password-form__code-row {
                            display: flex;
                            align-items: stretch;
                            gap: 12px;

                            .forget-password-form__code-btn {
                                flex-shrink: 0;
                                min-width: 128px;
                                min-height: 48px;
                                padding: 0 18px;
                                border: 1px solid var(--main-color);
                                border-radius: 10px;
                                background: #ffffff;
                                font-size: 14px;
                                font-weight: 400;
                                color: var(--main-color);
                                cursor: pointer;
                                transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;

                                &:hover:not(:disabled) {
                                    color: #ffffff;
                                    border-color: var(--yellow-color);
                                }

                                &:disabled {
                                    border-color: rgba(24, 24, 24, 0.12);
                                    background: #f5f5f5;
                                    color: #9ca3af;
                                    cursor: not-allowed;

                                    &:hover {
                                        &::before {
                                            display: none;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .forget-password-form__footer {
                margin-top: 8px;
                padding-top: 24px;
                border-top: 1px solid rgba(24, 24, 24, 0.08);

                .forget-password-form__submit {
                    width: 100%;
                    min-height: 52px;
                    border: none;
                    font-size: 16px;
                    cursor: pointer;

                    &:disabled {
                        background: #18181889;
                        cursor: not-allowed;
                    }
                }
            }
        }
    }
}
/* 忘記密碼頁面-end */
