body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

.login-image,
.register-image,
.recover-image,
.verify-image,
.unauthorized-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.register-image {
    flex: 0 0 20%;
}


.login-image::before,
.register-image::before,
.recover-image::before,
.verify-image::before,
.unauthorized-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

.login-image .image-overlay,
.register-image .image-overlay,
.recover-image .image-overlay,
.verify-image .image-overlay,
.unauthorized-image .image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(60, 75, 100, 0.45);
}

.login-image::before {
    background-image: url('../assets/img/20202020.jpg');
}

.register-image::before {
    background-image: url('../assets/img/drone2.jpg');
}

.recover-image::before {
    background-image: url('../assets/img/202020.jpg');
}

.verify-image::before {
    background-image: url('../assets/img/phone3.png');
}

.unauthorized-image::before {
    background-image: url('../assets/img/no002.jpg');
}

.login-form-side {
    width: 50%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.login-form-side2 {
    flex: 0 0 80%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-image,
    .recover-image,
    .verify-image {
        height: 40vh;
    }

    .register-image {
        height: 30vh;
        flex: 0 0 auto;
    }

    .login-form-side {
        height: 70vh;
        width: 100%;
    }

    .login-form-side2 {
        height: 70vh;
        width: 100%;
        flex: 1 1 auto;
    }

    .form-container2 {
        max-width: 100%;
    }

    .form-container-planos {
        max-width: 100%;
    }

}

.password-visibility-toggle {
    border: none;
    background: transparent;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 2FA modal inputs */
.auth2fa-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 0 5px;
}

.auth2fa-input:focus {
    outline: none;
    border-color: #747af2;
}

.form-container {
    max-width: 420px;
    margin: 0 auto;
    height: -webkit-fill-available;
    align-content: center;
}

.form-container2 {
    max-width: 520px;
    margin: 0 auto;
    height: -webkit-fill-available;
    align-content: center;
}

.form-container-planos {
    max-width: 1050px;
    margin: 0 auto;
    height: -webkit-fill-available;
    align-content: center;
}

/* Wizard steps */
.step-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.step-panel.active {
    display: block;
    opacity: 1;
}

.step-indicator {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.step-indicator span {
    font-weight: 700;
}

.progress.step-progress {
    height: 4px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress.step-progress .progress-bar {
    transition: width 0.25s ease-in-out;
}


.step-minimal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #747af2;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}


.btn-check:checked+label .custom-checkbox {
    background-color: #212631;
    border-color: #747af2;
}

[data-coreui-theme=light] .btn-check:checked+label .custom-checkbox {
    background-color: #eaecf1;
    border-color: #747af2;
}


.btn-check:checked+label .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #747af2;
    border-bottom: 2px solid #747af2;
    transform: rotate(45deg);
}

.modal-content {
    border-radius: 12px;
}

.modal-content .right-image {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
}

.btn-check:checked+label.btn-outline-primary {
    color: #fff;
    background-color: #747af2;
    border-color: #747af2;
}

/* Tema claro */
[data-coreui-theme="light"] .logo-switch {
    width: 200px;
    height: 80px;
    background-image: url("../assets/img/Logotipo_fundo_transparente_b.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    background-position: center;
}

/* Tema escuro */
[data-coreui-theme="dark"] .logo-switch {
    width: 200px;
    height: 80px;
    background-image: url("../assets/img/niotantek_branco.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    background-position: center;
}


.input-group #indicative.nice-select {
    width: 50% !important;
    min-width: 50% !important;
}

@media (max-width: 768px) {
    .input-group #indicative.nice-select {
        width: 50% !important;
        min-width: 50% !important;
    }
}

/* Footer fixo apenas em ecrãs largos */
.footer-fixed {
    position: fixed;
    bottom: 0;
    place-self: center;
}

@media (max-width: 768px) {
    .footer-fixed {
        position: static !important;
    }
}


.error-number {
    font-size: 15rem;
    font-weight: 900;
    -webkit-text-fill-color: #747af282;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.dark-mode .error-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .error-number {
        font-size: 10rem;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 7rem;
    }
}



.title001 {
    text-transform: uppercase;
    border-radius: 10px;
    width: fit-content;
    text-align: center;
    font-size: x-large;
}

[data-coreui-theme="light"] .title001 {
    border: 4px solid #363e4f;
    background-color: #a1a6ff;
    color: #363e4f;
}

[data-coreui-theme="dark"] .title001 {
    border: 4px solid #eee;
    background-color: #575cbd;
    color: #ccc;
}

/* ===========================
   NIOTANTEK BADGE (GENERIC)
   =========================== */

.nio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}

/* Estado positivo / destaque */
.nio-badge-positive {
    color: #2eb85c;
    background-color: rgba(46, 184, 92, 0.12);
    border-color: rgba(46, 184, 92, 0.4);
}

.nio-badge-danger {
    color: #e74444;
    background-color: rgb(247 33 33 / 15%);
    border-color: rgb(247 33 33 / 38%);
}

/* Estado informativo / neutro */
.nio-badge-info {
    color: #747af2;
    background-color: rgba(116, 122, 242, 0.12);
    border-color: rgba(116, 122, 242, 0.4);
}

/* Estado silencioso / secundário */
.nio-badge-muted {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.4);
}

[data-coreui-theme="dark"] .nio-badge-positive {
    color: #5dd39e;
    background-color: rgba(93, 211, 158, 0.15);
}

[data-coreui-theme="dark"] .nio-badge-info {
    color: #a1a6ff;
    background-color: rgba(161, 166, 255, 0.15);
}

[data-coreui-theme="dark"] .nio-badge-danger {
    color: #e74444;
    background-color: rgb(247 33 33 / 15%);
}

.bdg {
    color: crimson;
    font-weight: 500;
}

[data-coreui-theme="dark"] .bdg {
    color: aquamarine;
    font-weight: 500;
}

.btn-outline-secondary {
    --cui-btn-color: #080808 !important;
}

[data-coreui-theme="dark"] .btn-outline-secondary {
    --cui-btn-color: #ffffff !important;
}

.typefileimg {
    width: 40px;
    margin-right: 10px;
}


.pricing-card {
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    border: 1.5px solid rgba(116, 122, 242, 0.25);
    transition: all .25s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.pricing-card.featured {
    border: 2.5px solid #747af2;
}

.badge-featured {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #747af2;
    color: #fff;
    padding: 4px 10px;
    font-size: .7rem;
    border-radius: 999px;
}


.pricing-card.currentplan {
    border: 2.5px solid #b5b5b5;
    transform: none;
    transition: none;
    box-shadow: none;
}

.badge-currentplan {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #b5b5b5;
    color: #080a0c;
    padding: 4px 10px;
    font-size: .7rem;
    border-radius: 999px;
}

.currentplantitle {
    color: #b5b5b5 !important;
}

.pricing-desc {
    font-size: .85rem;
    color: #6c757d;
    min-height: 48px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #747af2;
}

.price-period {
    font-size: .8rem;
    color: #6c757d;
}


.plan-label {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    transition: color .2s ease;
    font-variant: all-small-caps;
}

.plan-label.active {
    color: #747af2;
}

.form-switch .form-check-input {
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #747af2;
    border-color: #747af2;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-original {
    font-size: 0.9rem;
}

.discount-text {
    font-weight: 500;
}

.price.have-discount {
    color: #51cc8a;
}

.discount-badge {
    position: absolute;
    top: 18px;
    right: 12px;
    background-color: rgba(46, 184, 92, 0.15);
    color: #2eb85c;
    border: 1px solid rgba(46, 184, 92, 0.4);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    z-index: 2;
}




.price-summary-blue {
    background-color: rgba(50, 31, 219, 0.05);
    border: 2px solid #321fdb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-summary-blue h5 {
    color: #321fdb;
    margin-bottom: 15px;
    font-weight: 600;
}

.price-item-blue {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(50, 31, 219, 0.2);
    color: #495057;
}

.price-item-blue.total {
    border-bottom: none;
    padding-top: 10px;
    border-top: 2px solid rgba(50, 31, 219, 0.3);
    color: #321fdb;
    font-weight: 700;
}

.price-amount-blue {
    color: #321fdb;
    font-weight: 500;
}

.price-total-blue {
    color: #321fdb;
    font-weight: 700;
    font-size: 1.2em;
}

.installment-options {
    background-color: rgba(50, 31, 219, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(50, 31, 219, 0.2);
}

.security-badge {
    background-color: rgba(46, 184, 92, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2eb85c;
}


.billing-switch {
    display: inline-flex;
    background: #d9d9d9;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

[data-coreui-theme="dark"] .billing-switch {
    background: #d9d9d921;
}

.billing-switch label {
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.billing-switch input:checked+label {
    background: #ffffff;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-coreui-theme="dark"] .billing-switch input:checked+label {
    background: #212631;
    color: #dfdfdf;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.billing-switch label:hover {
    color: #212529;
}

.billing-hint {
    font-size: 0.8rem;
    color: #4f46e5;
    font-weight: 500;
    white-space: nowrap;
}

[data-coreui-theme="dark"] .billing-hint {
    color: beige;
}