/* =========================================================
   CROWN THEORY
   Account Page Styles
   ========================================================= */


/* =========================================================
   1. ACTIVE ACCOUNT LINK
   ========================================================= */

.active-account-link {
    color: #6B7F63;
}


/* =========================================================
   2. ACCOUNT HERO
   ========================================================= */

.account-hero {
    padding: 72px 0 64px;

    background-color: #F7F4EB;

    border-bottom: 1px solid #DDD6C8;

    text-align: center;
}

.account-hero-content {
    max-width: 760px;
}

.account-hero h1 {
    margin-bottom: 20px;

    color: #3D2314;

    font-size: 54px;
    line-height: 1.1;
}

.account-hero p {
    max-width: 620px;

    margin: 0 auto;

    color: #6C625B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   3. ACCOUNT SECTION
   ========================================================= */

.account-section {
    padding: 80px 0 96px;

    background-color: #FCFAF5;
}

.account-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: stretch;
}


/* =========================================================
   4. ACCOUNT CARDS
   ========================================================= */

.account-form-card,
.account-create-card {
    padding: 40px;

    border-radius: 20px;
}

.account-form-card {
    background-color: #FFFFFF;

    border: 1px solid #DDD6C8;
}

.account-create-card {
    background-color: #E7ECE3;

    border: 1px solid #CDD5C8;
}

.account-card-header {
    margin-bottom: 32px;
}

.account-card-header h2,
.account-create-card h2 {
    margin-bottom: 14px;

    color: #3D2314;

    font-size: 36px;
}

.account-card-header p,
.account-create-card > p {
    max-width: 500px;

    color: #6C625B;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   5. FORMS
   ========================================================= */

.account-form,
.register-form,
.password-reset-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;

    min-height: 50px;

    padding: 12px 15px;

    background-color: #F7F4EB;

    color: #3D2314;

    border: 1px solid #DDD6C8;
    border-radius: 10px;

    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #6B7F63;
}

.form-group input:focus,
.form-group select:focus {
    background-color: #FFFFFF;

    border-color: #6B7F63;

    outline: 3px solid rgba(217, 160, 91, 0.35);
    outline-offset: 2px;
}


/* =========================================================
   6. PASSWORD INPUT
   ========================================================= */

.password-label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.forgot-password-button {
    padding: 0;

    background: none;

    border: none;

    color: #6B7F63;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.forgot-password-button:hover {
    color: #3D2314;

    text-decoration: underline;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    background: none;

    border: none;

    color: #6B7F63;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    transform: translateY(-50%);

    cursor: pointer;
}

.password-toggle:hover {
    color: #3D2314;
}


/* =========================================================
   7. REMEMBER OPTION
   ========================================================= */

.remember-option {
    margin-bottom: 24px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: #6C625B;

    font-size: 13px;

    cursor: pointer;
}

.remember-option input {
    width: 17px;
    height: 17px;

    margin-top: 2px;

    accent-color: #6B7F63;
}


/* =========================================================
   8. SUBMIT BUTTON
   ========================================================= */

.account-submit-button {
    width: 100%;

    min-height: 52px;
}

.account-form-message {
    margin-top: 14px;

    min-height: 20px;

    color: #3D2314;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   9. CREATE ACCOUNT BENEFITS
   ========================================================= */

.account-benefits {
    margin: 32px 0;
}

.account-benefits li {
    margin-bottom: 22px;

    display: flex;

    align-items: flex-start;

    gap: 14px;
}

.account-benefits li:last-child {
    margin-bottom: 0;
}

.benefit-check {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #6B7F63;

    color: #FFFFFF;

    border-radius: 50%;

    font-weight: 700;
}

.account-benefits strong {
    display: block;

    margin-bottom: 3px;

    color: #3D2314;

    font-size: 14px;
}

.account-benefits p {
    color: #606A5D;

    font-size: 13px;
    line-height: 1.5;
}

.create-account-button {
    width: 100%;
}


/* =========================================================
   10. REGISTER SECTION
   ========================================================= */

.register-section {
    padding: 0 0 96px;

    background-color: #FCFAF5;
}

.register-section[hidden] {
    display: none;
}

.register-card {
    max-width: 760px;

    margin: 0 auto;

    padding: 40px;

    background-color: #F7F4EB;

    border: 1px solid #DDD6C8;
    border-radius: 20px;
}

.register-card-header {
    margin-bottom: 16px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;
}

.register-card-header h2 {
    color: #3D2314;

    font-size: 36px;
}

.register-close-button,
.reset-close-button {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    background-color: transparent;

    color: #3D2314;

    border: 1px solid #DDD6C8;
    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;
}

.register-close-button:hover,
.reset-close-button:hover {
    background-color: #F3E3CC;
}

.register-intro {
    margin-bottom: 28px;

    max-width: 600px;

    color: #6C625B;

    font-size: 14px;
}

.register-name-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.optional-label {
    margin-left: 6px;

    color: #8A817A;

    font-size: 11px;
    font-weight: 400;
}

.password-help {
    display: block;

    margin-top: 7px;

    color: #7A716A;

    font-size: 11px;
}


/* =========================================================
   11. PASSWORD RESET SECTION
   ========================================================= */

.password-reset-section {
    padding: 0 0 96px;

    background-color: #FCFAF5;
}

.password-reset-section[hidden] {
    display: none;
}

.password-reset-card {
    position: relative;

    max-width: 560px;

    margin: 0 auto;

    padding: 40px;

    background-color: #FFFFFF;

    border: 1px solid #DDD6C8;
    border-radius: 20px;
}

.password-reset-card h2 {
    margin-bottom: 14px;

    color: #3D2314;

    font-size: 34px;
}

.password-reset-card > p {
    margin-bottom: 28px;

    color: #6C625B;

    font-size: 14px;
    line-height: 1.7;
}

.reset-close-button {
    position: absolute;

    top: 20px;
    right: 20px;
}


/* =========================================================
   12. SUPPORT SECTION
   ========================================================= */

.account-support-section {
    padding: 88px 0;

    background-color: #3D2314;
}

.account-support-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.account-support-card {
    padding: 30px;

    background-color: #F7F4EB;

    border-radius: 16px;
}

.support-number {
    display: block;

    margin-bottom: 20px;

    color: #D9A05B;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.account-support-card h3 {
    margin-bottom: 12px;

    color: #3D2314;

    font-size: 24px;
}

.account-support-card p {
    margin-bottom: 22px;

    color: #6C625B;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   13. TABLET
   ========================================================= */

@media screen and (max-width: 950px) {

    .account-layout {
        grid-template-columns: 1fr;

        max-width: 720px;
    }

    .account-support-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   14. SMALL TABLET
   ========================================================= */

@media screen and (max-width: 750px) {

    .account-hero {
        padding: 56px 0;
    }

    .account-hero h1 {
        font-size: 44px;
    }

    .account-section {
        padding: 64px 0;
    }

    .account-form-card,
    .account-create-card,
    .register-card,
    .password-reset-card {
        padding: 32px;
    }

    .account-support-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .account-hero {
        padding: 48px 0;
    }

    .account-hero h1 {
        font-size: 38px;
    }

    .account-hero p {
        font-size: 15px;
    }

    .account-form-card,
    .account-create-card,
    .register-card,
    .password-reset-card {
        padding: 24px;
    }

    .account-card-header h2,
    .account-create-card h2,
    .register-card-header h2 {
        font-size: 30px;
    }

    .register-name-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .password-label-row {
        align-items: flex-start;
    }

    .account-support-section {
        padding: 64px 0;
    }

}


/* =========================================================
   16. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 420px) {

    .account-hero h1 {
        font-size: 34px;
    }

    .account-form-card,
    .account-create-card {
        padding: 22px 18px;
    }

    .password-label-row {
        flex-direction: column;

        gap: 5px;
    }

    .register-card-header h2 {
        font-size: 27px;
    }

}