@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter/Inter-VariableFont_opsz,wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf")
        format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-size: 65.5%;
    height: 100%;
    overflow: hidden;
}
@media (max-width: 768px) {
    html,
    body {
        font-size: 60%;
    }
}

svg {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: visible;
}

.svg-icon {
    cursor: pointer;
}
.svg-icon path {
    stroke: rgba(255, 255, 255, 0.9);
    fill: none;
    stroke-width: 1;
}

input,
button {
    outline: none;
    border: none;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgb(196, 193, 193);
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgb(196, 193, 193);
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgb(196, 193, 193);
}

.cont {
    position: relative;
    height: 100vh;
    overflow: auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.cont::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("bg-qoff.webp");
    background-size: cover;
    background-position: center;
    filter: blur(7px); /* adjust blur strength */
    transform: scale(1.05); /* prevents edge blur cropping */
    z-index: -1;
}

.cont-admin {
    position: relative;
    height: 100%;
    background-image: url("background_admin.png");
    background-size: cover;
    overflow: auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}

.demo {
    position: absolute;
    top: 45%;
    left: 50%;
    margin-left: -17.5rem;
    margin-top: -26.5rem;
    width: 35rem;
    height: 58rem;
    overflow: hidden;
}

.login {
    position: relative;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgb(44 136 109) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: opacity 0.1s,
        transform 0.3s cubic-bezier(0.17, -0.65, 0.665, 1.25);
    transform: scale(1);
}
.login.inactive {
    opacity: 0;
    transform: scale(1.1);
}
.login__check {
    position: absolute;
    top: 16rem;
    left: 13.5rem;
    width: 14rem;
    height: 2.8rem;
    background: #fff;
    transform-origin: 0 100%;
    transform: rotate(-45deg);
}
.login__check:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 2.8rem;
    height: 5.2rem;
    background: #fff;
    box-shadow: inset -0.2rem -2rem 2rem rgba(0, 0, 0, 0.2);
}
.login__logo {
    position: absolute;
    top: 1.5rem;
    left: 10.5rem;
    width: 15rem;
    height: 14.5rem;
}
.login__row {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 59%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
    color: #ffffff;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #000;
}

input:-webkit-autofill ~ .password-toggle {
    color: #000000; /* jadi hitam saat autofill */
}

.alert {
    font-size: 1.4rem;
    color: #d5cece;
    position: absolute;
    top: 38%;
    width: 100%;
    padding: 0.5rem 2rem;
    text-align: center;
    /* border-radius: 22px; */
    background: #812415;
}
.alert-success {
    font-size: 1.4rem;
    color: #fafafa;
    position: absolute;
    top: 38%;
    width: 100%;
    padding: 0.5rem 2rem;
    text-align: center;
    /* border-radius: 22px; */
    background: #009b4c;
}
.login__title {
    font-size: 2.3rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
}
.login__form {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 50%;
    padding: 1rem 2.5rem;
    text-align: center;
    margin-top: -54px;
}
.login__row {
    height: 5rem;
    padding-top: 1rem;
    border-bottom: 1px solid rgba(247, 238, 238, 0.2);
}
.login__captcha {
    height: 12.5rem;
    padding-top: 1rem;
    border-bottom: 1px solid rgba(247, 238, 238, 0.2);
}
.login__icon {
    margin-bottom: -0.4rem;
    margin-right: 0.5rem;
}
.login__icon.name path {
    stroke-dasharray: 73.50196075439453;
    stroke-dashoffset: 73.50196075439453;
    -webkit-animation: animatePath 2s 0.5s forwards;
    animation: animatePath 2s 0.5s forwards;
}
.login__icon.pass path {
    stroke-dasharray: 92.10662841796875;
    stroke-dashoffset: 92.10662841796875;
    -webkit-animation: animatePath 2s 0.5s forwards;
    animation: animatePath 2s 0.5s forwards;
}
.login__input {
    display: inline-block;
    width: 27rem;
    height: 100%;
    padding-left: 1.5rem;
    font-size: 1.5rem;
    background: transparent;
    color: #fdfcfd;
}
.login__submit {
    position: relative;
    width: 100%;
    height: 3.4rem;
    margin: 1.2rem 0 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: #009b4c;
    font-size: 1.75rem;
    border-radius: 3rem;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s 0.15s, font-size 0.1s 0.15s;
}
.login__submit:hover {
    background-color: #01a852; /* New color on hover */
    color: rgba(255, 255, 255, 1); /* Slightly increase text opacity */
}
.login__submit:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -1.5rem;
    margin-top: -1.5rem;
    width: 3rem;
    height: 3rem;
    border: 2px dotted #fff;
    border-radius: 50%;
    border-left: none;
    border-bottom: none;
    transition: opacity 0.1s 0.4s;
    opacity: 0;
}
.login__submit.processing {
    width: 3.2rem;
    font-size: 0;
}
.login__submit.processing:after {
    opacity: 1;
    -webkit-animation: rotate 0.5s 0.4s infinite linear;
    animation: rotate 0.5s 0.4s infinite linear;
}
.login__submit.success {
    transition: transform 0.3s 0.1s ease-out, opacity 0.1s 0.3s,
        background-color 0.1s 0.3s;
    transform: scale(30);
    opacity: 0.9;
}
.login__submit.success:after {
    transition: opacity 0.1s 0s;
    opacity: 0;
    -webkit-animation: none;
    animation: none;
}
.login__signup {
    font-size: 1.2rem;
    color: #cecad1;
}
.login__signup a {
    color: #fff;
    cursor: pointer;
}
.input__captcha {
    /* background-position: 10px 10px;
  background-repeat: no-repeat;
  padding: 0.7rem;
  margin-top: 0.5rem;
  text-align: center;
  width: 27rem;
  background: transparent;
  color: #fdfcfd; */

    display: inline-block;
    width: 27rem;
    height: 40%;
    text-align: center;
    font-size: 1.5rem;
    background: transparent;
    color: #fdfcfd;
}

.app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: opacity 0.1s,
        transform 0.3s cubic-bezier(0.68, -0.45, 0.465, 1.25);
    transform: scale(1.2);
}
.app.active {
    opacity: 1;
    transform: scale(1);
}
.app.active .app__user-photo {
    transform: scale(1);
}
.app.active .app__meeting {
    transform: translateY(0);
    opacity: 1;
}
.app.active .app__logout {
    transform: scale(1);
}
.app__top {
    position: relative;
    height: 28rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 6rem 1.5rem 2rem;
    text-align: center;
}
.app__bot {
    position: relative;
    height: 25rem;
    background: #fff;
}
.app__menu-btn {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    width: 1.8rem;
    height: 1.7rem;
    cursor: pointer;
}
.app__menu-btn span,
.app__menu-btn:before,
.app__menu-btn:after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}
.app__menu-btn span {
    top: 0.8rem;
}
.app__menu-btn:before {
    content: "";
    top: 0;
}
.app__menu-btn:after {
    content: "";
    bottom: 0;
}
.app__icon {
    position: absolute;
    top: 2rem;
}
.app__icon.search {
    right: 1.5rem;
    stroke-dasharray: 61.847137451171875;
    stroke-dashoffset: 61.847137451171875;
    -webkit-animation: animatePath 0.5s 0.5s forwards;
    animation: animatePath 0.5s 0.5s forwards;
}
.app__hello {
    font-size: 2.2rem;
    color: #fff;
    font-weight: normal;
    margin-bottom: 3rem;
}
.app__user {
    position: relative;
    display: inline-block;
    width: 9rem;
    height: 9rem;
    margin-bottom: 3rem;
}
.app__user-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.3s 0.2s cubic-bezier(0.62, 0.35, 0.56, 1.55);
    transform: scale(0);
}
.app__user-notif {
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    line-height: 3rem;
    text-align: center;
    background: #50d2c2;
    color: #fff;
    font-size: 1.5rem;
}
.app__month:after {
    content: "";
    display: table;
    clear: both;
}
.app__month-name {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    text-transform: uppercase;
}
.app__month-btn {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: none;
    border-bottom: none;
    cursor: pointer;
}
.app__month-btn.left {
    float: left;
    transform: rotate(-135deg);
}
.app__month-btn.right {
    float: right;
    transform: rotate(45deg);
}
.app__days {
    height: 7rem;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.app__day {
    width: 14%;
    text-align: center;
    font-size: 1.2rem;
}
.app__day.weekday {
    color: #919197;
    text-transform: uppercase;
}
.app__day.date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3c3c43;
}
.app__meeting {
    position: relative;
    height: 6rem;
    border-top: 1px solid #eeeeef;
    padding: 1rem 2rem 1rem 7.5rem;
    transition: transform 0.3s, opacity 0.3s;
    transform: translateY(-50%);
    opacity: 0;
}
.app__meeting:nth-child(1) {
    transition-delay: 0.2s;
}
.app__meeting:nth-child(2) {
    transition-delay: 0.3s;
}
.app__meeting:nth-child(3) {
    transition-delay: 0.4s;
}
.app__meeting:nth-child(4) {
    transition-delay: 0.5s;
}
.app__meeting:nth-child(5) {
    transition-delay: 0.6s;
}
.app__meeting-photo {
    position: absolute;
    left: 2rem;
    top: 1rem;
    width: 4rem;
    height: 4rem;
}
.app__meeting-name {
    color: #000;
    font-size: 1.3rem;
}
.app__meeting-info {
    color: #949498;
    font-size: 1.1rem;
}
.app__logout {
    position: absolute;
    bottom: 3.3rem;
    right: 3.3rem;
    width: 4.6rem;
    height: 4.6rem;
    margin-right: -2.3rem;
    margin-bottom: -2.3rem;
    background: #fc3768;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: bottom 0.4s 0.1s, right 0.4s 0.1s, transform 0.4s 0.4s,
        opacity 0.1s 0.7s, background-color 0.1s 0.7s;
    transform: scale(0);
}
.app__logout.clicked {
    bottom: 50%;
    right: 50%;
    transform: scale(30) !important;
    opacity: 0.9;
}
.app__logout.clicked svg {
    opacity: 0;
}
.app__logout-icon {
    position: absolute;
    width: 3rem;
    height: 3rem;
    top: 50%;
    left: 50%;
    margin-left: -1.5rem;
    margin-top: -1.5rem;
    transition: opacity 0.1s;
}
.app__logout-icon path {
    stroke-width: 4px;
    stroke-dasharray: 64.36235046386719;
    stroke-dashoffset: 64.36235046386719;
    -webkit-animation: animatePath 0.5s 0.5s forwards;
    animation: animatePath 0.5s 0.5s forwards;
}

.ripple {
    position: absolute;
    width: 15rem;
    height: 15rem;
    margin-left: -7.5rem;
    margin-top: -7.5rem;
    background: rgba(0, 0, 0, 0.4);
    transform: scale(0);
    -webkit-animation: animRipple 0.4s;
    animation: animRipple 0.4s;
    border-radius: 50%;
}

span.btn-mod {
    font-weight: 300;
    font-size: 1.4rem;
    color: #fff;
    border-radius: 1.6px;
}

span.btn-blue {
    background-color: #4d32e9;
}

span.btn-mod {
    min-width: 3rem;
    padding: 3px 7px;
    text-align: center;
    line-height: inherit;
    box-sizing: border-box;
    border-radius: 15px;
}

/* sweet alert */
.swal2-popup {
    font-size: 1.5rem !important;
}

/* toastr */
.toast {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    width: 35rem !important;
    height: auto !important;
    opacity: 0.84 !important;
}

/* .toast-title {
  font-size: 1.5rem;
  font-weight: bold;
} */

.toast-message {
    font-size: 1.5rem !important;
    margin: auto;
}

.toast-warning {
    background-color: #e0891f !important;
}

/* toastr end */

@-webkit-keyframes animRipple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

@keyframes animRipple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}
@-webkit-keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}
@-webkit-keyframes animatePath {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes animatePath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Light modal theme to match original login (warm yellow accent) */
:root {
    --accent-yellow: #009b4c;
    --accent-yellow-2: #06cd66;
    --text: #111827;
    --muted: #6b7280;
}

#sso-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    z-index: 1000;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

#sso-modal.active {
    display: flex;
}

/* animate by toggling .open on the modal */
#sso-modal .modal-content {
    background: linear-gradient(180deg, #ffffff, #f8f9fb);
    color: var(--text);
    padding: 28px;
    border-radius: 12px;
    width: 520px;
    max-width: 96%;
    box-shadow: 0 18px 60px rgba(16, 24, 40, 0.08);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
    max-height: 90vh;
    overflow: auto;
    font-size: 16px;
}

#sso-modal.open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header: close button inline and right-aligned next to title */
#sso-modal .modal-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    justify-content: space-between;
}

#sso-modal .modal-header .brand {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

#sso-modal .modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

#sso-modal .modal-sub {
    color: var(--muted);
    font-size: 1.5rem;
    margin-top: 4px;
}

#sso-modal .modal-close {
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: bold;
    background: #fff;
    color: var(--muted);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e9ef;
    margin-left: 12px;
    box-shadow: 0 6px 18px rgba(19, 27, 38, 0.04);
}

#sso-modal .modal-close:hover {
    background: #f4f6f8;
}

@media (max-width: 420px) {
    #sso-modal .modal-header h3 {
        font-size: 1.6rem;
    }

    #sso-modal .modal-close {
        width: 34px;
        height: 34px;
    }
}

.sso-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eef2f6;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.sso-input svg {
    width: 18px;
    height: 18px;
    color: #9aa3ad;
    flex-shrink: 0;
}

.sso-input input {
    border: 0;
    outline: none;
    width: 100%;
    padding: 2px 0;
    font-size: 1.5rem;
    background: transparent;
    color: var(--text);
}

.sso-input input::placeholder {
    color: #bcc1c7;
}

#sso-modal .helper {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* Disabled button styling for SSO submit (and general .btn disabled) */
#sso-submit[disabled],
#sso-submit:disabled,
.btn[disabled],
.btn.disabled,
button[disabled] {
    background-color: #6c757d !important; /* muted gray */
    border-color: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    box-shadow: none !important;
}

/* keep hover from changing appearance when disabled */
#sso-submit[disabled]:hover,
#sso-submit:disabled:hover,
.btn[disabled]:hover,
.btn.disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Buttons: warm yellow accent to match login link */
#sso-modal .modal-footer {
    text-align: right;
    margin-top: 6px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

#sso-modal .btn {
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    font-size: 1.4rem;
    min-width: 96px;
}

#sso-modal .btn-primary {
    /* background: linear-gradient(
        90deg,
        var(--accent-yellow),
        var(--accent-yellow-2)
    ); */
    background: #009b4c;
    /* color: #231900; */
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(246, 178, 26, 0.12);
}

#sso-modal .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid #e6e9ef;
}

#sso-modal .btn:focus {
    outline: 3px solid rgba(246, 178, 26, 0.12);
}

@media (max-width: 540px) {
    #sso-modal .modal-content {
        width: 100%;
        padding: 18px;
        border-radius: 10px;
    }
}

/* stack buttons vertically on narrow screens so styles don't break */
@media (max-width: 420px) {
    #sso-modal .modal-footer {
        flex-direction: column-reverse;
        width: 100%;
    }

    #sso-modal .modal-footer .btn {
        width: 100%;
        min-width: 0;
    }
}
