html,
body {
    background-color: rgb(31, 32, 51);
}

.security-card {
    width: 70%;
    background-color: #1f2033;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-card-body {
    width: 100%;
}

.security-card-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.security-card-text {
    color: #b4b4c7;
    font-size: 1rem;
    line-height: 1.5;
}

.security-card-links {
    margin-top: 1.5rem;
}

.security-card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.security-card-link+.security-card-link {
    margin-left: 1rem;
}

.loading-container {
    animation: fadeIn 0.3s ease-in;
}

.pulse-container {
    animation: pulse 2s infinite ease-in-out;
}

.progress-steps .step {
    opacity: 0;
    animation: fadeInStep 0.5s ease-in forwards;
}

.progress-steps .step:nth-child(1) {
    animation-delay: 0.5s;
}

.progress-steps .step:nth-child(2) {
    animation-delay: 1.5s;
}

.progress-steps .step:nth-child(3) {
    animation-delay: 2.5s;
}

.mobile_detected {
    display: none;
}

@media (max-width: 767px) {
    .mobile_detected {
        display: block;
    }
}

.input-phrase {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    padding: 12px 16px;
    margin: 8px;
    width: calc(33.333% - 16px);
    transition: all 0.2s ease-in-out;
    outline: none;
}

.input-phrase:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.input-phrase:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.input-phrase::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.import-phrase-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px -8px;
}

.passphrase-container {
    margin: 20px 0;
}

.input-passphrase {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    padding: 12px 16px;
    margin: 8px;
    width: 100%;
}

.input-passphrase:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.input-passphrase::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Style the spinning icon */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    animation: spin 0.7s linear infinite;
    margin-left: 5px;
    margin-top: 2px;
}

.button-custom {
    align-items: center;
    background: linear-gradient(197deg, #5c6cf7 -35%, #a371f4 97%), #5c6cf7;
    border-radius: 30px;
    box-shadow: 0 10px 30px #6f39cd4d;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    font-weight: 500;
    height: 40px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1.67;
    opacity: .9;
    padding: 0 32px;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity .2s ease;
    width: 168px
}

@media(max-width:768px) {
    .button-custom {
        color: #ffffffe6;
        font-size: 11px;
        line-height: 2;
        opacity: 1;
        position: relative;
        width: 128px;
        z-index: 1002
    }
}

.button-custom:active,
.button-custom:active:hover,
.button-custom:focus,
.button-custom:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none
}

.button-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(197deg, #8e98f8 -35%, #b995f5 97%), #8e98f8;
    box-shadow: none
}


@media(max-width:768px) {
    .button-custom--menu-open {
        opacity: 0
    }
}

/* Define the spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 768px) {

    /* For mobile phones: */
    .spinner {
        margin-right: 5px;
        margin-top: 2px;
    }

}


/* Mobile adjustments */
@media (max-width: 768px) {
    .input-phrase {
        font-size: 0.9rem;
        padding: 8px 12px;
        margin: 4px;
        width: calc(33.333% - 8px);
    }

    .import-phrase-container {
        margin: 10px -4px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .header-image {
        display: block !important;
    }
}

@media (max-width: 768px) {

    .header-image {
        display: none;
    }

    .security-card {
        width: 100%;
    }
}