/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans", sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0e0e12;
    overflow: hidden;
    color: #fff;
    user-select: none;
}

/* ===== BACKGROUND IMAGE ===== */
.images-list {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.images-item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.images-item.active {
    opacity: 1;
}

.images-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.images-item-bg {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(5px);
    background-image: linear-gradient(#2d374878 0%, var(--darken-color) 100%);
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
    text-align: center;
    max-width: 28rem;
    width: 90%;
    animation: fadeIn 0.7s ease-in-out;
}

.login-container-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    animation: login-container-logo-animation 8s infinite;
}

@keyframes login-container-logo-animation {
    0% {
        transform: rotateZ(30deg);
    }

    50% {
        transform: rotateZ(-30deg);
    }

    100% {
        transform: rotateZ(30deg);
    }
}

.login-container-title {
    margin-bottom: 25px;
    font-size: 40px;
    font-weight: 730;
    text-transform: uppercase;
    color: #fff;
}



/* ===== LOGIN BOX ===== */
.login-box {
    background-color: #ffffff01;
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 25px #00000031;
}

.login-box-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

/* ERROR */
.login-box-error {
    color: #ef4444;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== INPUT FIELDS ===== */
.login-box-form-field {
    position: relative;
    margin-bottom: 8px;
}

.login-box-form-field input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border-radius: 8px;
    border: 1px solid #ffffff1c;
    background: #ffffff04;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}

.login-box-form-field input:focus {
    border-color: var(--main-color);
}

.login-box-form-field input::selection {
    background: var(--main-color);
    color: #000;
}

.login-box-form-field+div {
    text-align: left;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #ef4444;
    margin-bottom: 15px;
}

/* ===== PASSWORD VISIBILITY TOGGLE ===== */
.input-action {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffffad;
    display: flex;
    align-items: center;
}

.input-action svg {
    width: 22px;
    height: 22px;
    display: none;
}

.input-action .icon-show {
    display: block;
}

.input-action.showing .icon-show {
    display: none;
}

.input-action.showing .icon-hide {
    display: block;
}

/* ===== BUTTON ===== */
button[type="submit"] {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

button[type="submit"]:hover {
    opacity: .8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-container-title {
        font-size: 1.8rem;
    }

    .login-box {
        padding: 22px;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}