/* =========================================================
   NGÂN HÀNG ĐỀ - REGISTER PAGE
   Clean / Responsive / Standalone
   Font: Arial, sans-serif
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {

    --register-primary: #2a9d8f;
    --register-primary-hover: #2fcab8;
    --register-primary-dark: #0e6f66;
    --register-primary-deep: #0a3e38;

    --register-secondary: #264653;

    --register-mint: #70ebdd;
    --register-mint-light: #eafff8;

    --register-bg: #f5f7fb;
    --register-white: #ffffff;

    --register-text: #264653;
    --register-text-light: #718096;

    --register-border: #dfe6ea;
    --register-border-hover: #c5d3d8;

    --register-danger: #dc3545;
    --register-success: #198754;
}


/* =========================================================
   2. GLOBAL
========================================================= */

.register-page,
.register-page * {
    box-sizing: border-box;
}

.register-page {

    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(112, 235, 221, .35),
            transparent 28%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(42, 157, 143, .12),
            transparent 30%
        ),
        var(--register-bg);

    color: var(--register-text);

    font-family: Arial, sans-serif;
}

.register-page .fas,
.register-page .far {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.register-page .fab {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}

.register-page a {
    text-decoration: none;
}


/* =========================================================
   3. MAIN CONTAINER
========================================================= */

.register-container {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(420px, .95fr)
        minmax(480px, 1.05fr);

    width: 100%;
    max-width: 1180px;

    min-height: 730px;

    overflow: hidden;

    background: var(--register-white);

    border-radius: 28px;

    box-shadow:
        0 30px 70px rgba(38, 70, 83, .14),
        0 10px 30px rgba(42, 157, 143, .08);
}


/* =========================================================
   4. LEFT BRAND PANEL
========================================================= */

.register-brand-panel {

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(112, 235, 221, .18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(112, 235, 221, .12),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #264653 0%,
            #1d5961 48%,
            #2a9d8f 100%
        );

    color: #ffffff;
}

.register-brand-content {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 38px 52px;
}


/* =========================================================
   5. LOGO
========================================================= */

.register-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 28px;
}

.register-logo-image {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   6. BRAND HEADING
========================================================= */

.register-brand-heading {
    max-width: 440px;
}

.register-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--register-mint);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.register-eyebrow::before {

    content: "";

    width: 24px;
    height: 2px;

    background: var(--register-mint);

    border-radius: 2px;
}

.register-brand-heading h1 {
    margin: 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -1px;
}

.register-brand-heading p {
    max-width: 410px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   7. BENEFITS
========================================================= */

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin-top: 40px;
}

.register-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.register-benefit-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--register-mint);
    font-size: 17px;
}

.register-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.register-benefit span {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.5;
}



/* =========================================================
   9. DECORATION
========================================================= */

.register-decoration {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.register-decoration-1 {

    width: 300px;
    height: 300px;

    top: -165px;
    right: -145px;

    border: 1px solid rgba(255, 255, 255, .12);
}

.register-decoration-2 {

    width: 210px;
    height: 210px;

    bottom: -120px;
    left: -90px;

    background: rgba(112, 235, 221, .07);
}

.register-decoration-3 {

    width: 80px;
    height: 80px;

    right: 45px;
    bottom: 55px;

    background: rgba(112, 235, 221, .08);

    border: 1px solid rgba(255, 255, 255, .08);
}


/* =========================================================
   10. RIGHT FORM PANEL
========================================================= */

.register-form-panel {

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;
}

.register-form-wrapper {

    width: 100%;
    max-width: 450px;

    padding: 50px 38px;
}


/* =========================================================
   11. MOBILE LOGO
========================================================= */

.register-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.register-mobile-logo img {
    display: inline-block;
    width: 190px;
    max-width: 75vw;
    height: auto;
}


/* =========================================================
   12. FORM HEADER
========================================================= */

.register-form-header {

    margin-bottom: 27px;
}

.register-form-header h2 {
    margin: 0;
    color: var(--register-secondary);
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-align: center;
}

.register-form-header p {
    margin: 10px 0 0;
    color: var(--register-text-light);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}


/* =========================================================
   13. MESSAGES
========================================================= */

.register-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.register-messages > div {
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

.register-messages p {
    font-size: 16px;
    margin-bottom: 0px;
}


/* =========================================================
   14. FORM
========================================================= */

.register-form {
    width: 100%;
}

.register-field {

    width: 100%;

    margin-bottom: 16px;
}

.register-form-label {
    display: block;
    margin: 0 0 7px;
    color: var(--register-secondary);
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   15. INPUT
========================================================= */

.register-input-wrapper {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 50px;

    background: #ffffff;

    border: 1px solid var(--register-border);

    border-radius: 10px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.register-input-wrapper:hover {

    border-color: var(--register-border-hover);
}

.register-input-wrapper:focus-within {

    border-color: var(--register-primary);

    box-shadow:
        0 0 0 3px rgba(42, 157, 143, .10);
}


/* Input icon */

.register-input-icon {

    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #8b9aa3;

    font-size: 15px;

    pointer-events: none;

    z-index: 2;
}

.register-input-wrapper:focus-within
.register-input-icon {

    color: var(--register-primary);
}


/* Actual input */

.register-input {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 47px 0 47px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--register-secondary);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
    appearance: none;
}

.register-input:focus {

    border: 0;
    outline: 0;

    box-shadow: none;
}

.register-input::placeholder {
    color: #8f9ca4;
    opacity: 1;
    font-family: Arial, sans-serif;
    font-size: 16px;
}


/* =========================================================
   16. PASSWORD TOGGLE
========================================================= */

.register-password-toggle {

    position: absolute;

    top: 50%;
    right: 9px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #8b9aa3;

    cursor: pointer;
}

.register-password-toggle:hover {

    color: var(--register-primary);
}

.register-password-toggle:focus {

    outline: none;
}


/* =========================================================
   17. SELECT
========================================================= */

.register-select-wrapper {
    overflow: hidden;
}

.register-select {

    padding-right: 45px;

    cursor: pointer;
}

.register-select-arrow {

    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    color: #8b9aa3;

    font-size: 12px;

    pointer-events: none;
}


/* =========================================================
   18. ERROR
========================================================= */

.register-field-error {
    min-height: 18px;
    padding-top: 3px;
}

.register-field-error .text-danger {
    display: block;
    color: var(--register-danger);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}


/* =========================================================
   19. TERMS
========================================================= */

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    color: #626f75;
    font-size: 14px;
    line-height: 1.55;
}

.register-terms > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--register-primary);
    font-size: 14px;
}

.register-terms p {
    margin: 0;
    font-size: 14px;
}

.register-terms strong {

    color: var(--register-secondary);
}

.register-terms a {

    color: var(--register-primary);

    font-weight: 600;
}

.register-terms a:hover {

    color: var(--register-primary-dark);

    text-decoration: underline;
}


/* =========================================================
   20. REGISTER BUTTON
========================================================= */

.register-submit {

    position: relative;

    width: 100%;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border: 0;
    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2a9d8f 0%,
            #218c81 100%
        );

    box-shadow:
        0 8px 20px rgba(42, 157, 143, .20);

    font-family: Arial, sans-serif;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.register-submit:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #2fcab8 0%,
            #2a9d8f 100%
        );

    box-shadow:
        0 12px 28px rgba(42, 157, 143, .28);
}

.register-submit:active {

    transform: translateY(0);
}

.register-submit:focus {

    outline: none;

    box-shadow:
        0 0 0 3px rgba(42, 157, 143, .15),
        0 8px 20px rgba(42, 157, 143, .20);
}

.register-submit .message_sending {

    width: 24px;
    height: 24px;

    object-fit: contain;
}


/* =========================================================
   21. LOGIN LINK
========================================================= */

.register-login {

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 20px;

    color: #718096;

    font-size: 14px;

    line-height: 1.5;
}

.register-login a {

    color: var(--register-primary);

    font-size: 14px;
    font-weight: 700;

    transition: color .2s ease;
}

.register-login a:hover {

    color: var(--register-primary-dark);

    text-decoration: underline;
}


/* =========================================================
   22. DIVIDER
========================================================= */

.register-divider {

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 22px 0;

    color: #8b969d;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}

.register-divider::before,
.register-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e8edef;
}


/* =========================================================
   23. HOME BUTTON
========================================================= */

.register-home-button {

    width: 78%;
    height: 46px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--register-secondary);

    background: #ffffff;

    border: 1px solid var(--register-border);

    border-radius: 11px;

    font-family: Arial, sans-serif;

    font-size: 14px;
    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.register-home-button i {

    color: var(--register-primary);
}

.register-home-button:hover {

    color: var(--register-primary);

    background: var(--register-mint-light);

    border-color: var(--register-primary);

    transform: translateY(-1px);
}


/* =========================================================
   24. FOOTER
========================================================= */

.register-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    color: #9aa6ad;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.register-footer-text a {
    color: #8b969d;
    transition: color .2s ease;
}

.register-footer-text a:hover {
  color: var(--register-primary);
}


/* =========================================================
   25. TABLET
========================================================= */

@media screen and (max-width: 991px) {

    .register-page {
        padding: 25px;
    }

    .register-container {

        grid-template-columns:
            minmax(340px, .9fr)
            minmax(400px, 1.1fr);

        min-height: 680px;
    }

    .register-brand-content {
        padding: 28px 38px;
    }

    .register-logo-image {
        width: 210px;
    }

    .register-brand-heading h1 {
        font-size: 29px;
    }

    .register-brand-heading p {
        font-size: 15px;
    }

    .register-benefits {
        margin-top: 24px;
        gap: 13px;
    }

    .register-benefit strong {
        font-size: 14px;
    }

    .register-benefit span {
        font-size: 12px;
    }

    .register-form-wrapper {
        padding: 45px 30px;
    }
}


/* =========================================================
   26. MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    .register-page {

        min-height: 100vh;

        padding: 0;

        align-items: stretch;
    }

    .register-container {

        display: block;

        width: 100%;
        max-width: none;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;
    }

    .register-brand-panel {
        display: none;
    }

    .register-form-panel {
        display: flex;
        width: 100%;
        min-height: 100vh;
        padding: 30px 22px;
        align-items: flex-start;
        justify-content: center;
    }

    .register-form-wrapper {
        width: 100%;
        max-width: 500px;
        padding: 0;
        margin: 0 auto;
    }

    .register-mobile-logo {
        display: block;
        width: 100%;
        margin-bottom: 30px;
    }

    .register-mobile-logo img {
        width: 190px;
        max-width: 75vw;
    }

    .register-form-header {

        margin-bottom: 25px;
    }

    .register-form-header h2 {
        font-size: 32px;
    }

    .register-form-header p {
        font-size: 15px;
    }

    .register-field {
        margin-bottom: 15px;
    }

    .register-input-wrapper {
        height: 50px;
    }

    .register-input {
        font-size: 16px;
    }

    .register-input::placeholder {
        font-size: 16px;
    }

    .register-submit {

        height: 50px;

        font-size: 16px;
    }

    .register-terms {
        font-size: 13px;
    }

    .register-home-button {
        width: 78%;
    }

    .register-footer-text {
        font-size: 13px;
    }
}


/* =========================================================
   27. SMALL MOBILE
========================================================= */

@media screen and (max-width: 420px) {

    .register-form-panel {
        padding: 25px 18px;
    }

    .register-mobile-logo {
        margin-bottom: 27px;
    }

    .register-mobile-logo img {
        width: 175px;
    }

    .register-form-header h2 {
        font-size: 30px;
    }

    .register-form-header p {
        font-size: 14px;
    }

    .register-form-label {
        font-size: 14px;
    }

    .register-input-wrapper {
        height: 49px;
    }

    .register-input {
        font-size: 15.5px;
    }

    .register-input::placeholder {
        font-size: 15.5px;
    }

    .register-terms {
        font-size: 12.5px;
    }

    .register-submit {

        height: 49px;

        font-size: 15px;
    }

    .register-home-button {
        width: 85%;
    }
}


/* =========================================================
   28. VERY SMALL MOBILE
========================================================= */

@media screen and (max-width: 320px) {

    .register-form-panel {

        padding-left: 15px;
        padding-right: 15px;
    }

    .register-mobile-logo img {
        width: 160px;
    }

    .register-form-header h2 {
        font-size: 28px;
    }

    .register-field {
        margin-bottom: 13px;
    }

    .register-input {
        font-size: 15px;
    }

    .register-input::placeholder {
        font-size: 15px;
    }

    .register-home-button {
        width: 90%;
    }
}


/* =========================================================
   29. AJAX HIDDEN STATE
========================================================= */

.hide {
    display: none;
}

.info-blue {
    color: #0048ff;
}