/* AIUNIFY Studio compatibility layer for Book auth UI */

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

body {
    margin: 0 !important;
    background: #00131d !important;
}

.studio-auth-shell {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
}

.studio-auth-shell .auth-shell__frame {
    width: min(calc(100% - 32px), 420px);
}

.studio-auth-shell .auth-card {
    width: 100%;
}

.studio-auth-shell .auth-card__header {
    text-align: center;
}

.studio-auth-shell .auth-card__header h2 {
    color: #fefcfb !important;
}

.studio-auth-shell .auth-card__header p {
    color: rgba(254, 252, 251, .67) !important;
}

/* Password Show / Hide */
.studio-password-field {
    position: relative;
}

.studio-password-field .auth-input {
    padding-right: 64px !important;
}

.studio-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 5;
    transform: translateY(-50%);

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: rgba(254, 252, 251, .72) !important;

    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    cursor: pointer;
}

.studio-password-toggle:hover {
    color: #fefcfb !important;
}

/* Keep Studio reCAPTCHA centered */
.auth-recaptcha {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Preserve Studio's submit loader */
.studio-spinner {
    display: inline-block;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(255,255,255,.28);
    border-top-color: #fff;
    border-radius: 50%;

    animation: studio-auth-spin .75s linear infinite;
}

@keyframes studio-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 430px) {
    .studio-auth-shell .auth-shell__frame {
        width: min(calc(100% - 24px), 420px);
    }
}
