/**
 * HyperTechno customer account entry pages.
 *
 * Visual-only presentation for login, registration, and password recovery.
 * Magento forms, validation, reCAPTCHA, and customer workflows remain native.
 */

body.ht-account-entry {
    --ht-account-content-width: 1040px;
    --ht-account-form-width: 720px;
}

body.ht-account-entry .page-title-wrapper {
    background-color: var(--ht-color-ink) !important;
    margin-block-end: 0 !important;
    padding: 42px 24px !important;
}

body.ht-account-entry .page-title-wrapper h1.page-title {
    color: #fff;
    font-family: var(--ht-font-family);
    font-size: 24px;
    font-weight: var(--ht-font-weight-medium);
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0;
}

body.ht-account-entry main.page-main {
    padding-block: 56px 64px;
    padding-inline: 20px;
}

body.ht-account-entry main.page-main > .columns,
body.ht-account-entry main.page-main .column.main {
    min-width: 0;
}

body.ht-account-entry main.page-main > .columns {
    margin: 0 auto;
}

body.ht-account-entry .fieldset {
    border: 0;
    min-width: 0;
    padding: 0;
}

body.ht-account-entry .fieldset > .field,
body.ht-account-entry .customer-name-fields .field {
    margin-block-end: var(--ht-space-5);
}

body.ht-account-entry .fieldset > .field:last-child {
    margin-block-end: 0;
}

body.ht-account-entry .field > .label,
body.ht-account-entry .field > label {
    display: block;
    text-align: start;
}

body.ht-account-entry .field.note {
    color: var(--ht-color-muted);
    font-size: var(--ht-font-size-sm);
    font-style: normal;
    font-weight: 400;
    line-height: var(--ht-line-height-body);
    margin-block-end: var(--ht-space-6);
    max-width: 68ch;
}

body.ht-account-entry .field.choice {
    align-items: flex-start;
    display: flex;
    min-height: 24px;
    position: relative;
}

body.ht-account-entry .field.choice .label {
    line-height: 1.6;
}

body.ht-account-entry .field-recaptcha {
    margin-block-start: var(--ht-space-6);
    max-width: 100%;
}

body.ht-account-entry .g-recaptcha {
    margin-block-end: 0 !important;
    max-width: 100%;
}

body.ht-account-entry .mage-error {
    color: var(--ht-color-error);
    font-style: normal;
}

body.ht-account-entry .btn {
    border-radius: var(--ht-radius-sm) !important;
}

/* Login */
body.customer-account-login .login-container {
    align-items: stretch;
    display: grid;
    gap: var(--ht-space-6);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto !important;
    max-width: var(--ht-account-content-width);
}

body.customer-account-login .login-container::before,
body.customer-account-login .login-container::after {
    display: none;
}

body.customer-account-login .login-container > .block {
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-lg);
    box-shadow: none;
    float: none !important;
    margin: 0 !important;
    padding: var(--ht-space-8);
    width: auto !important;
}

body.customer-account-login .login-container .block-new-customer {
    align-self: stretch;
    background: var(--ht-color-soft);
    display: flex;
    flex-direction: column;
}

body.customer-account-login .login-container .block-title {
    border: 0;
    margin: 0 0 var(--ht-space-3);
    padding: 0;
}

body.customer-account-login .login-container .block-title h2 {
    color: var(--ht-color-heading);
    font-family: var(--ht-font-family);
    font-size: 21px;
    font-weight: var(--ht-font-weight-medium);
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0;
    text-align: start;
    text-transform: none;
}

body.customer-account-login .login-container .block-content {
    color: var(--ht-color-body);
}

body.customer-account-login .login-container .fieldset .field.note {
    font-style: normal;
    font-weight: 400;
}

body.customer-account-login .login-container .block-new-customer .block-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

body.customer-account-login .login-container .block-new-customer p {
    color: var(--ht-color-body);
    line-height: 1.75;
    margin: 0;
    max-width: 55ch;
}

body.customer-account-login .form-login .actions-toolbar {
    align-items: center;
    border-block-start: 1px solid var(--ht-color-line);
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--ht-space-4);
    justify-content: space-between;
    margin: var(--ht-space-6) 0 0 !important;
    padding-block-start: var(--ht-space-6);
}

body.customer-account-login .form-login .actions-toolbar > .primary,
body.customer-account-login .form-login .actions-toolbar > .secondary,
body.customer-account-login .block-new-customer .actions-toolbar > .primary {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.customer-account-login .form-login .actions-toolbar .action.login {
    min-width: 160px;
}

body.customer-account-login .form-login .action.remind {
    border-radius: var(--ht-radius-sm);
    color: var(--ht-color-primary);
    font-size: var(--ht-font-size-sm);
    font-weight: var(--ht-font-weight-bold);
    min-height: var(--ht-control-height);
    padding: 11px var(--ht-space-2);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition:
        color var(--ht-transition),
        text-decoration-color var(--ht-transition);
}

body.customer-account-login .form-login .action.remind:hover,
body.customer-account-login .form-login .action.remind:focus {
    color: var(--ht-color-primary-dark);
    text-decoration-color: currentColor;
}

body.customer-account-login .block-new-customer .actions-toolbar {
    margin-block-start: auto;
    padding-block-start: var(--ht-space-6);
    width: 100%;
}

body.customer-account-login .block-new-customer .actions-toolbar > .primary {
    width: 100%;
}

body.customer-account-login .block-new-customer .action.create {
    width: 100%;
}

/* Registration */
body.customer-account-create main.page-main {
    max-width: 1120px;
}

body.customer-account-create .form-create-account {
    background: var(--ht-color-surface);
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-lg);
    box-shadow: none;
    box-sizing: border-box;
    display: grid;
    gap: 0 var(--ht-space-8);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: var(--ht-account-content-width) !important;
    min-width: 0 !important;
    padding: var(--ht-space-8);
    width: 100%;
}

body.customer-account-create .form-create-account::before,
body.customer-account-create .form-create-account::after {
    display: none;
}

body.customer-account-create .form-create-account > .fieldset {
    float: none !important;
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
}

body.customer-account-create .form-create-account > .fieldset + .fieldset {
    border-inline-start: 1px solid var(--ht-color-line);
    padding-inline-start: var(--ht-space-8);
}

body.customer-account-create .form-create-account .title {
    color: var(--ht-color-heading);
    font-family: var(--ht-font-family);
    font-size: 21px;
    font-weight: var(--ht-font-weight-medium);
    letter-spacing: 0;
    line-height: 1.45;
    margin: 0 0 var(--ht-space-6);
    text-align: start;
    text-transform: none;
}

body.customer-account-create .form-create-account .customer-name-fields {
    margin: 0;
}

body.customer-account-create .form-create-account .customer-name-fields > [class*="col-"] {
    float: none;
    padding: 0;
    width: 100%;
}

body.customer-account-create .form-create-account .hypertechno-full-name-hint {
    color: var(--ht-color-muted);
    font-size: var(--ht-font-size-sm);
    line-height: var(--ht-line-height-body);
    margin-block-start: var(--ht-space-2);
}

body.customer-account-create .password-strength-meter {
    background: var(--ht-color-soft);
    border-radius: var(--ht-radius-sm);
    color: var(--ht-color-body);
    font-size: var(--ht-font-size-xs);
    font-weight: var(--ht-font-weight-medium);
    height: auto;
    line-height: 1.6;
    margin-block-start: var(--ht-space-2);
    min-height: 36px;
    overflow: hidden;
    padding: var(--ht-space-2) var(--ht-space-3);
}

body.customer-account-create .password-strength-meter::before {
    border-radius: var(--ht-radius-sm);
}

body.customer-account-create .form-create-account > .actions-toolbar {
    border-block-start: 1px solid var(--ht-color-line);
    clear: none;
    float: none !important;
    grid-column: 1 / -1;
    margin: var(--ht-space-8) 0 0;
    max-width: none !important;
    padding-block-start: var(--ht-space-6);
    width: auto !important;
}

body.customer-account-create .form-create-account > .actions-toolbar .line,
body.customer-account-forgotpassword .actions-toolbar-form .line {
    display: grid;
    gap: var(--ht-space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

body.customer-account-create .form-create-account > .actions-toolbar [class*="col-"],
body.customer-account-forgotpassword .actions-toolbar-form [class*="col-"] {
    float: none !important;
    margin: 0;
    max-width: none !important;
    padding: 0;
    width: 100% !important;
}

body.customer-account-create .form-create-account > .actions-toolbar .btn,
body.customer-account-forgotpassword .actions-toolbar-form .btn {
    width: 100%;
}

/* Password recovery */
body.customer-account-forgotpassword .form.password.forget {
    background: var(--ht-color-surface);
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-lg);
    box-shadow: none;
    margin: 0 auto;
    max-width: var(--ht-account-form-width);
    min-width: 0;
    padding: var(--ht-space-8);
    width: 100%;
}

body.customer-account-forgotpassword .form.password.forget .field.note .label {
    color: var(--ht-color-body);
    font-size: var(--ht-font-size-md);
    font-weight: 400;
    line-height: 1.75;
    margin: 0;
}

body.customer-account-forgotpassword .actions-toolbar-form {
    border-block-start: 1px solid var(--ht-color-line) !important;
    margin: var(--ht-space-6) 0 0 !important;
    padding-block-start: var(--ht-space-6) !important;
}

body.customer-account-forgotpassword footer.page-footer {
    margin-block-start: 0 !important;
}

@media (max-width: 991px) {
    body.customer-account-login .login-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    body.ht-account-entry .page-title-wrapper {
        padding: 28px 16px !important;
    }

    body.ht-account-entry .page-title-wrapper h1.page-title {
        font-size: 21px;
    }

    body.ht-account-entry main.page-main {
        padding-block: 32px 40px;
        padding-inline: 16px;
    }

    body.customer-account-login .login-container > .block,
    body.customer-account-create .form-create-account,
    body.customer-account-forgotpassword .form.password.forget {
        padding: var(--ht-space-6);
    }

    body.customer-account-login .form-login .actions-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.customer-account-login .form-login .actions-toolbar > .primary,
    body.customer-account-login .form-login .actions-toolbar .action.login {
        width: 100%;
    }

    body.customer-account-login .form-login .actions-toolbar > .secondary {
        text-align: center;
    }

    body.customer-account-create .form-create-account {
        grid-template-columns: minmax(0, 1fr);
    }

    body.customer-account-create .form-create-account > .fieldset + .fieldset {
        border-block-start: 1px solid var(--ht-color-line);
        border-inline-start: 0;
        margin-block-start: var(--ht-space-8) !important;
        padding-block-start: var(--ht-space-8);
        padding-inline-start: 0;
    }

    body.customer-account-create .form-create-account > .actions-toolbar .line,
    body.customer-account-forgotpassword .actions-toolbar-form .line {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 479px) {
    body.ht-account-entry main.page-main {
        padding-inline: 12px;
    }

    body.customer-account-login .login-container > .block,
    body.customer-account-create .form-create-account,
    body.customer-account-forgotpassword .form.password.forget {
        padding: var(--ht-space-4);
    }

    body.customer-account-login .login-container {
        gap: var(--ht-space-4);
    }

    body.customer-account-create .form-create-account > .fieldset + .fieldset {
        margin-block-start: var(--ht-space-6) !important;
        padding-block-start: var(--ht-space-6);
    }
}

@media (max-width: 767px) {
    body.ht-account-entry .field.choice .field-tooltip {
        position: static;
    }

    body.ht-account-entry .field.choice .field-tooltip .field-tooltip-content {
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        width: auto;
    }

    body.ht-account-entry .field.choice .field-tooltip .field-tooltip-content::before,
    body.ht-account-entry .field.choice .field-tooltip .field-tooltip-content::after {
        display: none;
    }
}
