﻿/* IzNotification */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in-out;
}

    .notification.success {
        background: #4CAF50;
    }

    .notification.info {
        background: #2196F3;
    }

    .notification.warning {
        background: #FF9800;
    }

    .notification.error {
        background: #F44336;
    }

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fim IzNotification */


/* Logins / Register / RecoverPassword / ChangePassword */

.center-card {
    width: 100%;
    text-align: -webkit-center;
}

.centered-card {
    max-width: 500px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.centered-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.form-row {
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-links {
    text-align: right;
    font-size: 14px;
}

    .form-links a {
        color: #007bff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .form-links a:hover {
            color: #0056b3;
        }

.submit-button {
    justify-self:center;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    width: 50%;
    margin-top: 20px;
}

    .submit-button:hover {
        background-color: #218838;
    }

/* Fim Logins / Register / RecoverPassword / ChangePassword */

/*UserPermsPage UserProfilesConfigsPage*/

.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    font-weight: bold;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px; 
    font-size: 1.1rem; 
    border-radius: 8px; 
    border: 2px solid #ccc; 
    background-color: #f8f9fa; 
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    
    .form-control:focus {
        border-color: #6c757d; 
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
        outline: none; 
    }

    
    .form-control option {
        padding: 12px 15px; 
        font-size: 1.1rem; 
        font-family: 'Arial', sans-serif;
        background-color: #f8f9fa; 
        color: #495057; 
        transition: background-color 0.2s ease; 
    }

       
        .form-control option:hover {
            background-color: #e2e6ea; 
        }

        
        .form-control option:disabled {
            color: #6c757d; 
            background-color: #e9ecef; 
        }

            
            .form-control option:disabled[selected] {
                color: #6c757d; 
                font-weight: bold; 
            }

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px; /* Space for the arrow */
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath fill="none" stroke="black" stroke-width="2" d="M2 6l6 6 6-6" /%3E%3C/svg%3E') no-repeat right 10px center;
    background-size: 12px 12px; /* Adjust the arrow size */
}

.row {
    display: flex;
    align-items: center;
}

.btn {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
}

    .btn i {
        font-size: 18px;
        margin-right: 8px;
    }

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.popup {
    position: fixed;
    top: 22%;
    left: 85%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 350px;
    z-index: 1000;
}

    .popup input {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
        margin-bottom: 10px;
        border-radius: 5px;
        border: 1px solid #ced4da;
    }

    .popup ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

        .popup ul li {
            padding: 10px;
            border-bottom: 1px solid #f1f1f1;
        }

            .popup ul li button {
                background-color: #007bff;
                color: white;
                padding: 5px 10px;
                border: none;
                border-radius: 5px;
                cursor: pointer;
            }

                .popup ul li button:hover {
                    background-color: #0056b3;
                }

.modal.show .modal-dialog { /* Popup de confirmação de eliminação*/
    top: 35%;
}

.flexModPerms {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
}

.module-permissions,
.permissions {
    height:430px;
    background-color: white;
    border: 1px solid #ced4da;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

    .module-permissions h4,
    .permissions h4 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #343a40;
    }

    .module-permissions::-webkit-scrollbar {
        width: 6px; 
    }

    .module-permissions::-webkit-scrollbar-track {
        background: transparent; 
    }

    .module-permissions::-webkit-scrollbar-thumb {
        background: #888; 
        border-radius: 10px;
    }

        .module-permissions::-webkit-scrollbar-thumb:hover {
            background: #555; 
        }

    .module-permissions::-webkit-scrollbar-corner {
        background: transparent; 
    }

table.table {
    width: 100%;
    border-collapse: collapse;
}

    table.table th,
    table.table td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    table.table th {
        background-color: #f1f1f1;
        color: #495057;
    }

.permissions {
    width: 35%;
    max-height: 360px;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

    .permissions h4 {
        font-size: 1.25rem;
        font-weight: bold;
        color: #343a40;
        margin-bottom: 15px;
    }

    .permissions div {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .permissions input[type="checkbox"] {
        margin-right: 10px;
        width: 20px;
        height: 20px;
    }

    .permissions label {
        font-size: 1rem;
        color: #495057;
    }

    .permissions button {
        width: 96%;
        padding: 10px;
        margin-top: 10px;
        font-size: 1rem;
        font-weight: bold;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .permissions .btn-info {
        background-color: #3e9108;
        color: white;
        border: none;
    }

        .permissions .btn-info:disabled {
            background-color: #a9cfd5;
        }

    .permissions .btn-danger {
        background-color: #c82333;
        color: white;
        border: none;
    }

        .permissions .btn-danger:disabled {
            background-color: #dc3545;
        }

    .permissions button:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

    .permissions .btn-info:hover:not(:disabled),
    .permissions .btn-danger:hover:not(:disabled) {
        opacity: 0.9;
    }

    .permissions button:focus {
        outline: none;
    }

    .permissions button:active {
        transform: scale(0.98);
    }

/*Fim UserPermsPage UserProfilesConfigsPage */

/* Module Tree */

tr {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

tr:hover {
    background-color: #f1f1f1;
}

td {
    padding-left: 20px;
    font-family: Arial, sans-serif;
}

span {
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}

td span + span {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ModuleTree {
    margin-left: 20px;
}

    .ModuleTree li {
        list-style-type: none;
    }

        .ModuleTree li::before {
            content: "\2022";
            font-size: 16px;
            margin-right: 10px;
            color: #007bff;
        }

tr.disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.mud-icon-button-label{
    margin:0;
}

/* Fim Module Tree */

/* Novo ecrã de autenticação */
.auth-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 64px);
    width: calc(100% + 32px);
    margin: -16px;
    padding: clamp(24px, 5vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(32, 162, 125, .12), transparent 34%),
        radial-gradient(circle at 92% 86%, rgba(22, 96, 78, .11), transparent 30%),
        #f3f7f6;
    font-family: Inter, Roboto, "Segoe UI", sans-serif;
}

.auth-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .6;
    pointer-events: none;
}

.auth-glow-one {
    top: -220px;
    right: 4%;
    background: rgba(53, 193, 151, .13);
}

.auth-glow-two {
    bottom: -250px;
    left: 2%;
    background: rgba(15, 79, 66, .1);
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(330px, .92fr) minmax(400px, 1.08fr);
    width: min(980px, 100%);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(16, 67, 56, .08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(22, 63, 54, .14);
}

.auth-brand-panel {
    display: flex;
    flex-direction: column;
    padding: 46px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .08), transparent 42%),
        linear-gradient(145deg, #0a3028 0%, #12604e 58%, #178066 100%);
}

.auth-logo {
    display: inline-flex;
    align-items: baseline;
    width: fit-content;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.03em;
}

.auth-logo:hover {
    color: #fff;
}

.auth-logo-mark {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.auth-logo-name {
    margin: 0 0 0 3px;
    color: #a8ecd7;
    font-size: 16px;
    font-weight: 500;
}

.auth-brand-copy {
    margin: auto 0 34px;
}

.auth-eyebrow,
.auth-kicker {
    display: block;
    margin: 0 0 14px;
    color: #9de2cc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-brand-copy h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-brand-copy h1:focus {
    outline: none;
}

.auth-brand-copy p {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.65;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.auth-feature-list div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-feature-list span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #b7f6e2;
    font-size: 12px;
}

.auth-brand-panel small {
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 6vw, 72px);
    background: #fff;
}

.auth-mobile-logo {
    display: none;
}

.auth-kicker {
    margin-bottom: 10px;
    color: #17735d;
}

.auth-form-heading h2 {
    margin: 0 0 10px;
    color: #132d27;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.auth-form-heading p {
    margin: 0 0 30px;
    color: #71817d;
    font-size: 15px;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-alert-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

.auth-alert-success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field {
    display: grid;
    gap: 8px;
    color: #2e443f;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.auth-input-wrap svg {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #80918d;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid #d8e3e0;
    border-radius: 12px;
    outline: none;
    color: #18342d;
    background: #fbfdfc;
    font: inherit;
    font-size: 15px;
    font-weight: 450;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input-wrap input::placeholder {
    color: #9ba8a5;
}

.auth-input-wrap input:focus {
    border-color: #249075;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 144, 117, .11);
}

.auth-login-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}
.auth-login-modes a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 12px;
    border: 1px solid #d8e3e0;
    border-radius: 13px;
    color: #304840;
    background: #fbfdfc;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.auth-login-modes a:hover { transform: translateY(-1px); border-color: #8ab9aa; }
.auth-login-modes a.active { border-color: #23866b; background: #edf8f3; box-shadow: 0 0 0 2px rgba(35, 134, 107, .08); }
.auth-login-modes a > span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e6f2ed; font-size: 17px; }
.auth-login-modes strong { font-size: 12px; }
.auth-login-modes small { margin-top: 2px; color: #758780; font-size: 10px; line-height: 1.3; }
.auth-password-wrap input { padding-right: 52px; }
.auth-password-toggle {
    position: absolute;
    right: 7px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #657b74;
    background: transparent;
    cursor: pointer;
}
.auth-password-toggle:hover { color: #14745b; background: #eaf5f0; }
.auth-password-toggle:focus-visible { outline: 3px solid rgba(36, 144, 117, .32); }
.auth-password-toggle svg { position: static; width: 19px; height: 19px; fill: none; stroke: currentColor; pointer-events: none; }
.auth-mode-help { margin: -8px 0 14px; color: #71817d; font-size: 12px; line-height: 1.5; }
.auth-email-remember { margin: 0 0 6px; }
@media (max-width: 480px) {
    .auth-login-modes { gap: 7px; }
    .auth-login-modes a { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; padding: 10px 8px; }
    .auth-login-modes a > span { width: 28px; height: 28px; }
    .auth-login-modes strong { font-size: 11px; }
    .auth-login-modes small { font-size: 9px; }
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #60716d;
    font-size: 13px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #17735d;
}

.auth-remember span {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.auth-form-options a,
.auth-register a,
.auth-legal a {
    color: #17735d;
    font-weight: 700;
    text-decoration: none;
}

.auth-form-options a:hover,
.auth-register a:hover,
.auth-legal a:hover {
    text-decoration: underline;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #12664f, #1b8a6e);
    box-shadow: 0 12px 24px rgba(23, 115, 93, .2);
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(23, 115, 93, .27);
    filter: brightness(1.04);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-register {
    margin: 25px 0 0;
    color: #71817d;
    text-align: center;
    font-size: 13px;
}

.auth-register-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #54756b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 10px;
}

.auth-register-button:hover { color: #168163; }

.auth-legal {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: #a1aca9;
    font-size: 11px;
}

.auth-legal a {
    color: #80908c;
    font-weight: 500;
}

body:has(.auth-shell) .mud-appbar {
    display: none;
}

body:has(.auth-shell) .mud-main-content {
    margin-top: 0 !important;
}

body:has(.auth-shell) .auth-shell {
    min-height: 100vh;
}

@media (max-width: 820px) {
    .auth-shell {
        padding: 24px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
        min-height: auto;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
        margin: 0 0 32px;
        color: #123b31;
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -.04em;
    }

    .auth-mobile-logo span {
        margin: 0 0 0 3px;
        color: #22846b;
        font-size: 14px;
        font-weight: 550;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        width: calc(100% + 16px);
        margin: -8px;
        padding: 12px;
        place-items: start center;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }

    .auth-form-heading h2 {
        font-size: 29px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

}

.admin-top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin-right: 8px;
    padding: 0 13px;
    border: 1px solid #cfe0da;
    border-radius: 10px;
    color: #17664f;
    background: #f4faf8;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.route-access-denied {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 100px);
    padding: 30px;
    text-align: center;
    background: #f4f8f6;
}

.route-access-denied > div {
    width: min(480px, 100%);
    padding: 44px;
    border: 1px solid #dde9e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(25,70,58,.1);
}

.route-access-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px !important;
    border-radius: 50%;
    color: #9a5b18;
    background: #fff3d8;
    font-size: 24px !important;
    font-weight: 900;
}

.route-access-denied h1 { margin: 0 0 10px; color: #173d33; }
.route-access-denied p { color: #6f817c; }
.route-access-denied a { display: inline-flex; margin-top: 10px; padding: 11px 17px; border-radius: 10px; color: #fff; background: #17664f; font-weight: 700; text-decoration: none; }

/* Six-cell verification code: OTP autofill and paste stay supported. */
.auth-code-fieldset {
    min-width: 0;
    margin: 0 0 1.15rem;
    padding: 0;
    border: 0;
}

.auth-code-fieldset legend {
    margin-bottom: .7rem;
    color: #243746;
    font-size: .92rem;
    font-weight: 750;
}

.xiz-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.4rem, 2vw, .68rem);
    width: 100%;
    perspective: 900px;
}

.xiz-otp-digit {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: clamp(3.45rem, 10vw, 4rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e4c8ca !important;
    border-radius: 14px !important;
    outline: 0 !important;
    color: #322024 !important;
    background: linear-gradient(145deg, #fff 0%, #fff8f8 100%) !important;
    box-shadow: 0 5px 14px rgba(97,29,38,.07), inset 0 1px 0 #fff !important;
    font: 800 clamp(1.35rem, 4vw, 1.75rem)/1 system-ui, sans-serif !important;
    text-align: center !important;
    caret-color: #d82335 !important;
    transition: border-color .22s ease, background .22s ease, box-shadow .24s ease, transform .24s cubic-bezier(.2,.8,.2,1) !important;
    animation: xiz-otp-arrive .55s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--otp-index, 0) * 65ms);
}

.xiz-otp-digit:hover { transform: translateY(-2px); border-color: #d88d95 !important; }
.xiz-otp-digit:focus {
    z-index: 1;
    transform: translateY(-4px) scale(1.045);
    border-color: #d82335 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(216,35,53,.13), 0 12px 26px rgba(160,25,43,.16) !important;
    animation: xiz-otp-focus .38s cubic-bezier(.2,.8,.2,1);
}

.xiz-otp-digit.is-filled {
    border-color: #e3a5a9 !important;
    color: #bd1e30 !important;
    background: linear-gradient(145deg, #fff8f8, #ffeded) !important;
    animation: xiz-otp-pop .32s cubic-bezier(.2,.85,.25,1.4);
}

.xiz-otp-boxes.is-complete .xiz-otp-digit {
    border-color: #e8a741 !important;
    color: #91580a !important;
    background: linear-gradient(145deg, #fffaf0, #fff0d0) !important;
    box-shadow: 0 0 0 2px rgba(232,167,65,.1), 0 7px 18px rgba(232,167,65,.13) !important;
}

.xiz-otp-boxes.is-checking .xiz-otp-digit { animation: xiz-otp-check .7s ease-in-out infinite alternate; animation-delay: calc(var(--otp-index, 0) * 55ms); }
.xiz-otp-boxes.is-success .xiz-otp-digit { border-color:#32a879 !important; color:#167351 !important; background:linear-gradient(145deg,#f2fff9,#dcf7ea) !important; box-shadow:0 0 0 2px rgba(22,130,91,.1),0 8px 24px rgba(22,130,91,.2) !important; }
.xiz-otp-boxes.is-invalid .xiz-otp-digit { border-color: #d82335 !important; color:#aa1c2a !important; background:linear-gradient(145deg,#fff8f8,#ffeded) !important; box-shadow:0 0 0 3px rgba(216,35,53,.1),0 7px 18px rgba(216,35,53,.12) !important; animation: xiz-otp-shake .4s ease-in-out; }
.auth-code-hint { display:block; margin-top:.65rem; color:#718493; font-size:.77rem; line-height:1.45; }
.auth-code-error { display:block; min-height:1.15rem; margin-top:.2rem; color:#b42335; font-size:.8rem; font-weight:650; }
.auth-code-error:empty { display:none; }

.auth-verified-shell { display:grid; place-items:center; }
.auth-verified-card { position:relative; z-index:1; width:min(100% - 2rem, 470px); padding:3rem 2rem 2.4rem; border:1px solid rgba(45,158,113,.24); border-radius:28px; background:rgba(255,255,255,.94); box-shadow:0 28px 90px rgba(23,81,62,.16); text-align:center; animation:auth-verified-enter .65s cubic-bezier(.2,.8,.2,1) both; }
.auth-verified-mark { width:96px; height:96px; margin:0 auto 1.5rem; color:#1e9b6d; }
.auth-verified-mark svg { overflow:visible; width:100%; height:100%; }
.auth-verified-ring { fill:rgba(37,174,121,.1); stroke:currentColor; stroke-width:3; stroke-dasharray:176; stroke-dashoffset:176; animation:auth-verified-ring .7s .12s ease-out forwards; }
.auth-verified-tick { fill:none; stroke:currentColor; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:44; stroke-dashoffset:44; animation:auth-verified-tick .42s .72s ease-out forwards; }
.auth-verified-card h1 { margin:.5rem 0; color:#173d33; font-size:clamp(1.8rem,6vw,2.35rem); letter-spacing:-.045em; }
.auth-verified-card p { margin:0; color:#71817e; }
.auth-verified-progress { height:4px; margin:1.8rem auto 0; overflow:hidden; border-radius:99px; background:#e7f2ed; }
.auth-verified-progress span { display:block; width:100%; height:100%; transform:scaleX(0); transform-origin:left; border-radius:inherit; background:linear-gradient(90deg,#1e9b6d,#60d5a4); animation:auth-verified-progress 1.05s linear forwards; }
[data-theme="dark"] .auth-verified-card { border-color:#315b4d; background:#17231f; }
[data-theme="dark"] .auth-verified-card h1 { color:#e8fff4; }
[data-theme="dark"] .auth-verified-card p { color:#b2c9bf; }

[data-theme="dark"] .auth-code-fieldset legend { color: #dbe6f3; }
[data-theme="dark"] .xiz-otp-digit {
    border-color: #46516a !important;
    color: #eff5ff !important;
    background: linear-gradient(145deg, #192338, #111a2b) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
[data-theme="dark"] .xiz-otp-digit:focus { border-color:#fb7185 !important; box-shadow:0 0 0 4px rgba(251,113,133,.16),0 12px 26px rgba(0,0,0,.25) !important; }
[data-theme="dark"] .xiz-otp-digit.is-filled { border-color:#be6670 !important; color:#ffd6db !important; background:linear-gradient(145deg,#38212a,#291923) !important; }
[data-theme="dark"] .xiz-otp-boxes.is-complete .xiz-otp-digit { border-color:#d49438 !important; color:#ffd991 !important; background:linear-gradient(145deg,#3a2c18,#2b2115) !important; }
[data-theme="dark"] .xiz-otp-boxes.is-success .xiz-otp-digit { border-color:#4da986 !important; color:#aaf0d3 !important; background:linear-gradient(145deg,#15372e,#102b26) !important; }

.auth-shell .auth-submit,
.auth-shell .auth-register-button,
.auth-shell .auth-theme-toggle {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, filter .2s ease, border-color .2s ease !important;
}

.auth-shell .auth-submit::after,
.auth-shell .auth-register-button::after,
.auth-shell .auth-theme-toggle::after {
    position: absolute;
    z-index: -1;
    inset: -30% auto -30% -42%;
    width: 32%;
    content: "";
    transform: skewX(-22deg) translateX(-180%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.auth-shell .auth-submit:hover::after,
.auth-shell .auth-register-button:hover::after,
.auth-shell .auth-theme-toggle:hover::after { transform: skewX(-22deg) translateX(520%); }
.auth-shell .auth-submit:hover,
.auth-shell .auth-register-button:hover,
.auth-shell .auth-theme-toggle:hover { transform: translateY(-2px); filter: brightness(1.035); }
.auth-shell .auth-submit:active,
.auth-shell .auth-register-button:active,
.auth-shell .auth-theme-toggle:active { transform: translateY(1px) scale(.985); }
.auth-shell .auth-submit:focus-visible,
.auth-shell .auth-register-button:focus-visible,
.auth-shell .auth-theme-toggle:focus-visible,
.xiz-otp-digit:focus-visible { outline:3px solid rgba(216,35,53,.3) !important; outline-offset:3px; }

.auth-shell .auth-submit svg { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.auth-shell .auth-submit:hover svg { transform: translateX(4px); }

@keyframes xiz-otp-arrive {
    from { opacity:0; transform:translateY(13px) rotateX(-16deg) scale(.88); filter:blur(4px); }
    to { opacity:1; transform:translateY(0) rotateX(0) scale(1); filter:blur(0); }
}
@keyframes xiz-otp-pop {
    0% { transform:scale(.76) rotateY(55deg); }
    70% { transform:scale(1.12) rotateY(-6deg); }
    100% { transform:scale(1) rotateY(0); }
}
@keyframes xiz-otp-focus {
    0% { box-shadow:0 0 0 0 rgba(216,35,53,0); }
    70% { box-shadow:0 0 0 6px rgba(216,35,53,.16); }
    100% { box-shadow:0 0 0 4px rgba(216,35,53,.13),0 12px 26px rgba(160,25,43,.16); }
}
@keyframes xiz-otp-check { from { transform:translateY(0) scale(1); } to { transform:translateY(-3px) scale(1.025); } }
@keyframes xiz-otp-shake { 20%,60% { transform:translateX(-4px); } 40%,80% { transform:translateX(4px); } }
@keyframes auth-verified-enter { from { opacity:0; transform:translateY(18px) scale(.97); filter:blur(5px); } to { opacity:1; transform:translateY(0) scale(1); filter:blur(0); } }
@keyframes auth-verified-ring { to { stroke-dashoffset:0; } }
@keyframes auth-verified-tick { to { stroke-dashoffset:0; } }
@keyframes auth-verified-progress { to { transform:scaleX(1); } }

@media (max-width: 420px) {
    .xiz-otp-boxes { gap:.35rem; }
    .xiz-otp-digit { height:3.25rem !important; border-radius:11px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .xiz-otp-digit,
    .auth-shell .auth-submit,
    .auth-shell .auth-submit::after,
    .auth-shell .auth-submit svg,
    .auth-shell .auth-register-button,
    .auth-shell .auth-register-button::after,
    .auth-shell .auth-theme-toggle,
    .auth-shell .auth-theme-toggle::after {
        animation:none !important;
        transition:none !important;
    }
}
