@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../../fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
}

:root {
    --ic-auth-ink: #111a35;
    --ic-auth-copy: #596680;
    --ic-auth-muted: #94a0b8;
    --ic-auth-line: #dbe2ee;
    --ic-auth-blue: #0875f7;
    --ic-auth-blue-deep: #0665e5;
    --ic-auth-card: rgba(255, 255, 255, .96);
}

html,
body.blank-page {
    min-height: 100%;
}

body.blank-page {
    margin: 0;
    overflow-x: hidden;
    color: var(--ic-auth-ink);
    background:
        radial-gradient(circle at 94% -3%, rgba(213, 224, 248, .72) 0 225px, transparent 226px),
        radial-gradient(circle at -3% 82%, rgba(224, 232, 248, .7) 0 155px, transparent 156px),
        radial-gradient(circle at 12% 102%, rgba(222, 230, 247, .74) 0 170px, transparent 171px),
        linear-gradient(118deg, #fff 0%, #fbfcff 47%, #f4f7fd 100%);
    font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}

html body.blank-page .app-content.content.auth-modern-page {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding: 64px 20px !important;
}

.auth-modern-page::before,
.auth-modern-page::after {
    position: fixed;
    z-index: -1;
    width: 620px;
    height: 620px;
    content: "";
    border-radius: 50%;
    pointer-events: none;
    opacity: .72;
    background: repeating-radial-gradient(
        circle,
        transparent 0 17px,
        rgba(78, 133, 231, .105) 18px 19px,
        transparent 20px 28px
    );
}

.auth-modern-page::before {
    top: -315px;
    left: -285px;
}

.auth-modern-page::after {
    right: -330px;
    bottom: -345px;
}

.auth-modern-page .content-wrapper,
.auth-modern-page .content-body,
.auth-modern-page .auth-wrapper,
.auth-modern-page .auth-inner {
    width: 100%;
    min-height: 0 !important;
}

.auth-modern-page .auth-wrapper.auth-basic {
    display: block;
    padding: 0 !important;
}

.auth-modern-page .auth-wrapper.auth-basic .auth-inner {
    width: min(100%, 532px);
    max-width: 532px;
    margin: 0 auto !important;
}

.auth-modern-page .auth-wrapper.auth-basic .auth-inner::before,
.auth-modern-page .auth-wrapper.auth-basic .auth-inner::after {
    display: none !important;
    content: none !important;
}

.auth-modern-page .card {
    overflow: visible;
    border: 1px solid rgba(221, 227, 238, .72);
    border-radius: 12px;
    background: var(--ic-auth-card);
    box-shadow: 0 18px 50px rgba(34, 55, 94, .10);
    backdrop-filter: blur(8px);
}

.auth-modern-page .card-body {
    padding: 44px 40px 38px;
}

.auth-modern-page .brand-logo {
    display: flex;
    width: max-content;
    margin: 0 auto 28px !important;
    padding: 0;
}

.auth-modern-page .brand-logo img {
    width: 172px;
    height: auto !important;
    max-height: 76px;
    object-fit: contain;
}

.auth-title {
    margin: 0 0 28px;
    color: var(--ic-auth-ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -.6px;
}

.register_area .auth-title {
    margin-bottom: 24px;
}

.auth-modern-page .auth-login-form {
    margin-top: 0 !important;
}

.auth-modern-page .auth-login-form > .mb-1 {
    margin-bottom: 18px !important;
}

.auth-modern-page .form-label {
    margin-bottom: 8px;
    color: var(--ic-auth-copy);
    font-size: 13px;
    font-weight: 500;
}

.auth-modern-page .form-control,
.auth-modern-page .input-group-text {
    min-height: 48px;
    border-color: var(--ic-auth-line);
    background-color: rgba(255, 255, 255, .92);
    color: var(--ic-auth-ink);
    font-size: 14px;
    box-shadow: none;
}

.auth-modern-page .form-control {
    border-radius: 6px;
    padding: 11px 14px 11px 47px;
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 19px 19px;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth-modern-page .form-control::placeholder {
    color: #9aa6bc;
    opacity: 1;
}

.auth-modern-page .form-control:focus {
    border-color: #79abf6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(8, 117, 247, .10);
}

.auth-modern-page #email,
.auth-modern-page #reg_email,
.auth-modern-page #forget_email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.auth-modern-page #name {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.auth-modern-page #password,
.auth-modern-page #reg_password,
.auth-modern-page #password-confirm,
.auth-modern-page [data-recovery-code-input] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14v3'/%3E%3C/svg%3E");
}

.auth-modern-page .input-group.input-group-merge .form-control {
    border-radius: 6px 0 0 6px;
}

.auth-modern-page .input-group.input-group-merge .input-group-text {
    width: 48px;
    justify-content: center;
    padding: 0;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: #8e9bb2;
}

.auth-modern-page .form-password-toggle .input-group-text i {
    display: block;
    width: 19px;
    height: 19px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238e9bb2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
    font-size: 0;
}

.auth-modern-page .form-password-toggle .input-group-text i.fa-eye-slash {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238e9bb2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 6.1A10.9 10.9 0 0 1 12 6c6.5 0 10 6 10 6a18 18 0 0 1-2.2 3'/%3E%3Cpath d='M6.6 6.6C3.6 8.4 2 12 2 12s3.5 6 10 6a10.8 10.8 0 0 0 4.1-.8'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

.auth-modern-page .input-group:focus-within .input-group-text {
    border-color: #79abf6;
    background-color: #fff;
}

.auth-modern-page .error,
.auth-modern-page .invalid-feedback {
    display: block;
    margin-top: 6px;
    color: #d83a52;
    font-size: 12px;
    line-height: 1.35;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 20px;
}

.auth-options .form-check {
    display: flex;
    align-items: center;
    min-height: 22px;
    margin: 0;
    padding-left: 0;
}

.auth-modern-page .form-check-input {
    width: 17px;
    height: 17px;
    margin: 0 9px 0 0;
    border: 1px solid #c7d0df;
    border-radius: 4px;
    box-shadow: none;
}

.auth-modern-page .form-check-input:checked {
    border-color: var(--ic-auth-blue);
    background-color: var(--ic-auth-blue);
}

.auth-modern-page .form-check-label,
.auth-modern-page .auth-options a,
.auth-modern-page .auth-account-prompt {
    color: var(--ic-auth-copy);
    font-size: 13px;
    line-height: 1.55;
}

.auth-modern-page a {
    color: var(--ic-auth-blue);
    font-weight: 500;
}

.auth-modern-page a:hover {
    color: var(--ic-auth-blue-deep);
}

.auth-modern-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(115deg, var(--ic-auth-blue-deep), var(--ic-auth-blue));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(8, 117, 247, .18);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-modern-page .btn-primary:hover,
.auth-modern-page .btn-primary:focus {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 10px 24px rgba(8, 117, 247, .26);
}

.auth-modern-page .btn-primary:disabled,
.auth-modern-page .btn-primary.disabled {
    transform: none;
    opacity: .62;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0 22px;
    color: #7d899f;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    content: "";
    flex: 1;
    background: #e0e5ee;
}

.auth-account-prompt {
    margin: 0 !important;
    text-align: center;
}

.register_area .form-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding-left: 0;
}

.register_area .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.register_area .form-check-label {
    min-width: 0;
    flex: 1 1 auto;
}

.auth-modern-page .otp_area h4,
.auth-modern-page .forget_area .auth-title,
.auth-modern-page .verification_area h4 {
    color: var(--ic-auth-ink);
}

.auth-modern-page .auth-input-wrapper {
    gap: 8px;
}

.auth-modern-page .auth-input-wrapper .auth-input {
    min-width: 0;
    padding: 8px;
    background-image: none;
}

.auth-modern-page .alert {
    border-radius: 7px;
    font-size: 12px;
}

.dark-layout body.blank-page {
    background:
        radial-gradient(circle at 94% -3%, rgba(53, 72, 114, .64) 0 225px, transparent 226px),
        radial-gradient(circle at -3% 82%, rgba(40, 57, 91, .65) 0 155px, transparent 156px),
        radial-gradient(circle at 12% 102%, rgba(46, 62, 96, .62) 0 170px, transparent 171px),
        linear-gradient(120deg, #111726 0%, #151d2f 55%, #111827 100%);
}

.dark-layout .auth-modern-page::before,
.dark-layout .auth-modern-page::after {
    opacity: .44;
}

.dark-layout .auth-modern-page .card {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(29, 38, 58, .96);
    box-shadow: 0 22px 56px rgba(0, 0, 0, .32);
}

.dark-layout .auth-modern-page .auth-title,
.dark-layout .auth-modern-page .otp_area h4,
.dark-layout .auth-modern-page .verification_area h4 {
    color: #f2f5fb;
}

.dark-layout .auth-modern-page .form-label,
.dark-layout .auth-modern-page .form-check-label,
.dark-layout .auth-modern-page .auth-options a,
.dark-layout .auth-modern-page .auth-account-prompt,
.dark-layout .auth-modern-page .card-text {
    color: #c1cada;
}

.dark-layout .auth-modern-page .form-control,
.dark-layout .auth-modern-page .input-group-text {
    border-color: rgba(255, 255, 255, .13);
    background-color: #151d2d;
    color: #eef3fb;
}

.dark-layout .auth-modern-page .form-control:focus,
.dark-layout .auth-modern-page .input-group:focus-within .input-group-text {
    border-color: #4f8ee9;
    background-color: #182235;
}

.dark-layout .auth-modern-page .form-control::placeholder {
    color: #7e8aa1;
}

.dark-layout .auth-divider::before,
.dark-layout .auth-divider::after {
    background: rgba(255, 255, 255, .12);
}

.dark-layout .auth-divider {
    color: #8f9bb1;
}

@media (max-width: 575.98px) {
    body.blank-page {
        background:
            radial-gradient(circle at 110% -5%, rgba(213, 224, 248, .68) 0 125px, transparent 126px),
            linear-gradient(145deg, #fff 0%, #f4f7fd 100%);
    }

    html body.blank-page .app-content.content.auth-modern-page {
        place-items: start center;
        padding: 22px 14px !important;
    }

    .auth-modern-page::before {
        top: -410px;
        left: -385px;
    }

    .auth-modern-page::after {
        display: none;
    }

    .auth-modern-page .card-body {
        padding: 32px 23px 28px;
    }

    .auth-modern-page .brand-logo {
        margin-bottom: 22px !important;
    }

    .auth-modern-page .brand-logo img {
        width: 156px;
    }

    .auth-title {
        margin-bottom: 24px;
        font-size: 26px;
    }

    .auth-options {
        align-items: flex-start;
    }
}

@media (max-height: 720px) and (min-width: 576px) {
    html body.blank-page .app-content.content.auth-modern-page {
        place-items: start center;
        padding: 28px 20px !important;
    }

    .auth-modern-page .card-body {
        padding-top: 34px;
        padding-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-modern-page *,
    .auth-modern-page *::before,
    .auth-modern-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
