html, body {
    font-family: monospace;
    height: 100%;
    margin: 0;
    padding: 0;

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
}

.main {
    align-items: center;
    background: url("../pattern.jpg") repeat, 
    linear-gradient(225deg, #ff9f0fbc 0%, #ff0f0fce 100%);
    background-size: 2160px auto, cover;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.frame {
    background-color: #202020;
    /* border: 1px solid #0FFF50; */
    border: 1px solid #fd2727;
    border-radius: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    color: #FFEB0F;
    padding: 16px 32px;
    max-width: 800px;
    width: 80%;
}

.header {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.header i {
    margin-right: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.header h1 {
    font-size: 48px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

form {
    margin: 0 24px;
}

.set {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.set fieldset {
    flex: 1 1 0;
    width: 100%;
    box-sizing: border-box;
}

.set input[type="text"] {
    background-color: #373737;
    box-sizing: border-box;
    color: #FFEB0F;
    width: 100%;
}

.set input[type="text"]:focus {
    outline: none;
    border: 1px solid #fd2727;
    box-shadow: 0 0 4px #fd2727;
}

fieldset {
    background-color: #070707;
    /* border: 1px solid #0FFF50; */
    border: 1px solid #fd2727;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    gap: 2px;
    justify-content: space-between;
    margin: 16px 0;
    padding: 16px;
}

fieldset label {
    flex: 1 1 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.btn button {
    background-color: #FFEB0F;
    border: none;
    border-radius: 8px;
    color: #171717;
    cursor: pointer;
    font-size: 24px;
    font-family: monospace;
    margin: 32px 0;
    padding: 8px 16px;
    width: 200px;
}

.btn button:hover {
    background-color: #ffeb0fce;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.btn button:disabled {
    background-color: #373737;
    color: #202020;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.footer a {
    color: #FFEB0F;
    text-align: right;
    margin: 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.footer a:hover {
    color: #ffeb0fce; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
}

fieldset label input:disabled + span,
fieldset label input:disabled {
    opacity: 0.5;
    color: #888;
    cursor: not-allowed;
}

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #373737 inset !important;
    -webkit-text-fill-color: #FFEB0F !important;
    caret-color: #FFEB0F;
    transition: background-color 5000s ease-in-out 0s;
}

input:-internal-autofill-selected { /* for Firefox (less reliable) */
    background-color: #373737 !important;
    color: #FFEB0F !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #171717;
    color: #FFEB0F;
    border: 2px solid #fd2727;
    border-radius: 12px;
    padding: 48px 36px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    position: relative;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fd2727;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #FFEB0F;
}


@media (max-width: 950px) {
    .frame {
        padding: 8px 16px;
        width: 85%;
    }
    .header h1 {
        font-size: 40px;
    }
    form {
        margin: 0 16px;
    }
    .set {
        flex-direction: column;
        gap: 0px;
    }
    .set fieldset {
        width: 100%;
    }
    fieldset {
        margin: 8px 0;
    }
    .footer a {
        margin: 0 8px;
    }
}

@media (max-width: 380px) {
    .frame {
        padding: 4px 8px;
        width: 90%;
    }
    .header h1 {
        font-size: 36px;
    }
    fieldset label,
    fieldset label span {
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .frame {
        padding: 4px;
        width: 95%;
        transform: scale(0.90);
        transform-origin: top center;
    }
}