.auth-page {
    background: #f7f9fb;
}

.auth-page .login-container,
.auth-page .register-container {
    background: #ffffff;
}

.auth-panel {
    width: 100%;
    max-width: 430px;
}

.auth-register-panel {
    max-width: 760px;
}

.auth-logo {
    display: block;
    width: min(210px, 72vw);
    height: auto;
}

.auth-intro {
    margin: 28px 0 0;
    padding-top: 0 !important;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

.auth-form {
    width: 100%;
}

.auth-form .form-group-default {
    min-height: 54px;
    border-color: #d6dde5;
    border-radius: 0;
    background: #ffffff;
}

.auth-form .form-group-default label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.auth-form .form-control {
    color: #111827;
    font-size: 15px;
}

.auth-password-group {
    display: flex;
    align-items: stretch;
}

.auth-password-group .form-input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-password-group .input-group-append {
    display: flex;
    align-items: stretch;
    flex: 0 0 52px;
}

.auth-password-group .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    padding: 0;
    border-left: 1px solid #d6dde5;
    background: #ffffff;
}

.auth-password-group .input-group-text a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #003b22;
}

.auth-link-row {
    margin-top: 4px;
}

.auth-checkbox-row {
    margin-top: 10px;
}

.auth-form .checkbox {
    margin-bottom: 0;
}

.auth-form .checkbox label {
    color: #4b5563;
    line-height: 1.45;
}

.auth-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.auth-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 !important;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.15;
}

.auth-footer-area .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 4px;
}

.auth-product-note {
    margin-top: 20px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.65;
}

.auth-register-footer {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 767px) {
    html,
    body.auth-page {
        min-height: 100%;
        overflow-x: hidden;
    }

    .auth-page .bg-pic {
        display: none !important;
    }

    .auth-page .login-wrapper,
    .auth-page .login-container,
    .auth-page .register-container {
        position: static !important;
        width: 100% !important;
        min-height: 100dvh;
        height: auto !important;
        overflow: visible;
    }

    .auth-page .login-container,
    .auth-page .register-container {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(42px, 10vh, 84px) 16px 36px !important;
        background: #ffffff !important;
    }

    .auth-page .login-container > .auth-panel,
    .auth-page .register-container .auth-panel {
        max-width: 372px;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .auth-page .register-container > .d-flex {
        display: block !important;
        width: 100%;
        max-width: 372px;
        min-height: auto !important;
        height: auto !important;
        margin: 0 auto;
    }

    .auth-logo {
        width: min(210px, 70vw);
        margin: 0 auto 30px;
    }

    .auth-intro {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 14px;
    }

    .auth-form {
        padding-top: 0 !important;
    }

    .auth-form .row {
        margin-left: 0;
        margin-right: 0;
    }

    .auth-form [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .auth-form .form-group-default {
        min-height: 56px;
        margin-bottom: 10px;
    }

    .auth-password-group .input-group-text {
        min-height: 56px;
    }

    .auth-link-row .col-md-6,
    .auth-checkbox-row .col-md-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .auth-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .auth-actions .btn {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        white-space: normal;
    }

    .auth-footer-area {
        position: static !important;
        margin-top: 6px;
    }

    .auth-footer-area .m-b-30,
    .auth-footer-area .p-r-80,
    .auth-footer-area .sm-p-r-15 {
        margin-bottom: 16px !important;
        padding-right: 0 !important;
    }

    .auth-footer-area .col-sm-3,
    .auth-footer-area .col-md-2,
    .auth-footer-area .col-sm-9 {
        width: 100%;
        padding: 0 !important;
    }

    .auth-footer-area .btn {
        width: 100%;
        margin-top: 0 !important;
    }

    .auth-product-note,
    .auth-register-footer {
        margin-top: 18px;
        text-align: left !important;
    }

    .auth-register-footer p {
        text-align: center !important;
    }

    #form-register .progress {
        height: 5px;
        margin: -1px 0 14px;
        border-radius: 999px;
        background: #e5e7eb;
    }
}

@media (max-width: 380px) {
    .auth-actions {
        grid-template-columns: 1fr;
    }
}
