body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 50px 0;
    color: #222;
    min-height: 100vh;
    /* Градиентный фон */
    background: linear-gradient(270deg, #ffecd2, #fcb69f, #a1c4fd, #c2e9fb, #fcb69f, #ffecd2);
    background-size: 1200% 1200%;
    animation: gradientBG 26s ease infinite;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    25% {background-position: 50% 100%;}
    50% {background-position: 100% 50%;}
    75% {background-position: 50% 0%;}
    100% {background-position: 0% 50%;}
}

#app {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    padding: 0 32px;
    text-align: center;
}

.fancy-input {
    margin-top: 18px;
    padding: 14px 22px;
    font-size: 1.1em;
    border: none;
    border-radius: 24px;
    outline: none;
    background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 50%, #a1c4fd 100%);
    color: #2d2d4d;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(160, 180, 255, 0.12);
    transition: box-shadow 0.2s, background 0.3s, color 0.3s;
    width: 320px;
    max-width: 90vw;
    text-shadow: 0 1px 8px #fff8, 0 1px 0 #fff8;
    text-align:center;
}
.fancy-input span{
	font-size: 0.9em;
}
.fancy-input:focus {
    box-shadow: 0 4px 24px rgba(160, 180, 255, 0.22);
    background: linear-gradient(90deg, #a1c4fd 0%, #c2e9fb 50%, #fcb69f 100%);
    color: #1a1a2e;
} 

.password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}
.inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.password-input {
    width: 38px;
    height: 48px;
    font-size: 2em;
    text-align: center;
    border: none;
    border-radius: 10px;
    background: linear-gradient(120deg, #fcb69f 0%, #a1c4fd 100%);
    color: #2d2d4d;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(160, 180, 255, 0.13);
    outline: none;
    transition: box-shadow 0.2s, background 0.3s, color 0.3s;
}
.password-input:focus {
    background: linear-gradient(120deg, #a1c4fd 0%, #fcb69f 100%);
    box-shadow: 0 4px 16px rgba(160, 180, 255, 0.22);
    color: #1a1a2e;
}
.open-btn {
    margin-top: 10px;
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #a1c4fd 0%, #fcb69f 100%);
    color: #fff;
    font-size: 1.1em;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(160, 180, 255, 0.13);
    transition: background 0.3s, box-shadow 0.2s;
}
.open-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.error-msg {
    color: #e74c3c;
    margin-top: 12px;
    font-weight: 600;
    text-shadow: 0 1px 8px #fff8;
}
.success-msg {
    margin-top: 18px;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 24px 32px;
    color: #2d2d4d;
    font-size: 1.2em;
    box-shadow: 0 2px 12px rgba(160, 180, 255, 0.12);
    text-align: center;
} 

@media (max-width: 600px) {
    body {
        padding: 18px 0;
    }
    .fancy-input {
        width: 98vw;
        min-width: 0;
        font-size: 1em;
        padding: 12px 8px;
    }
    .password-container {
        margin-top: 18px;
        padding: 0 7vw;
    }
    .inputs {
        gap: 4px;
    }
    .password-input {
        width: 24px;
        height: 38px;
        font-size: 1.2em;
        border-radius: 7px;
    }
    .open-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 1em;
    }
    .success-msg {
        padding: 16px 6px;
        font-size: 1em;
    }
    #app {
        padding: 12px 0;
    }
} 
/*
.inputs .password-input:nth-child(1) {
    background: #ff4b4b;
    color: #fff;
    border: 2px solid #ff4b4b;
}
.inputs .password-input:nth-child(2) {
    background: #ff9900;
    color: #fff;
    border: 2px solid #ff9900;
}
.inputs .password-input:nth-child(3) {
    background: #ffe600;
    color: #222;
    border: 2px solid #ffe600;
}
.inputs .password-input:nth-child(4) {
    background: #4bff4b;
    color: #222;
    border: 2px solid #4bff4b;
}
.inputs .password-input:nth-child(5) {
    background: #00cfff;
    color: #fff;
    border: 2px solid #00cfff;
}
.inputs .password-input:nth-child(6) {
    background: #3a4bff;
    color: #fff;
    border: 2px solid #3a4bff;
}
.inputs .password-input:nth-child(7) {
    background: #a94bff;
    color: #fff;
    border: 2px solid #a94bff;
} */