/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #101113;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
}


/* ==========================================
   CONTENEDOR GENERAL
========================================== */

#main-wrapper {
    width: 100%;
    min-height: 100vh;
}

.unix-login {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 80px 20px 40px;
}


/* ==========================================
   TARJETA
========================================== */

.login-content {
    position: relative;

    width: 595px;
    max-width: 100%;

    margin: 0 auto;

    padding: 65px 50px 55px;

    background: #24272d;

    border: none;
    border-radius: 5px;

    box-shadow: none;
}


/* ==========================================
   CABECERA
========================================== */

.login-header {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 0;
}


/* ==========================================
   LOGO
========================================== */

.login-logo {
    position: absolute;

    width: 150px;
    height: 150px;

    top: -90px;
    left: 50%;

    transform: translateX(-50%);

    object-fit: cover;

    border-radius: 50%;

    z-index: 10;
}


/* ==========================================
   AVATARES
========================================== */

.habbo-avatars {
    width: 100%;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    justify-content: center;
    align-items: flex-end;

    gap: 8px;

    margin-top: 0;
    margin-bottom: 35px;
}

.habbo-avatars img {
    display: block;

    width: 100px;
    height: auto;

    flex: 0 0 100px;

    object-fit: contain;

    image-rendering: pixelated;
}


/* ==========================================
   FORMULARIO
========================================== */

.login-form {
    width: 100%;

    padding: 0;

    margin: 0;
}

.login-form h4 {
    margin: 0 0 52px;

    padding: 0;

    text-align: center;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}


/* ==========================================
   GRUPOS
========================================== */

.form-group {
    width: 100%;

    margin: 0 0 20px;
}

.form-group label {
    display: block;

    margin: 0 0 12px;

    padding: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 400;
}


/* ==========================================
   INPUT
========================================== */

.form-control {
    display: block;

    width: 100%;
    height: 44px;

    padding: 10px 15px;

    background: #17181c;

    color: #ffffff;

    border: 1px solid #17181c;
    border-radius: 0;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;

    box-shadow: none;

    transition: border-color 0.2s ease;
}

.form-control:focus {
    background: #17181c;

    color: #ffffff;

    border-color: #3b918e;

    outline: none;

    box-shadow: none;
}


/* Para evitar fondos blancos del autocompletado */

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #17181c inset;
}


/* ==========================================
   ERRORES
========================================== */

.invalid-feedback {
    width: 100%;

    margin: 10px 0;

    padding: 10px;

    color: #ff6b6b;

    font-size: 13px;

    background: rgba(255, 0, 0, 0.08);

    border: 1px solid rgba(255, 0, 0, 0.15);
}


/* ==========================================
   BOTÓN
========================================== */

.btn {
    display: block;

    width: 100%;

    border: 0;

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;

    text-align: center;
}

.btn-primary {
    width: 100%;
    height: 52px;

    margin-top: 49px;

    padding: 0 20px;

    background: #3b918e;

    color: #ffffff;

    border: none;
    border-radius: 3px;

    font-size: 14px;
    font-weight: 700;

    line-height: 52px;

    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #34817e;
}

.btn-primary:focus {
    outline: none;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: default;
}


/* ==========================================
   REGISTRO
========================================== */

.register-link {
    width: 100%;

    margin-top: 46px;

    text-align: center;
}

.register-link p {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 400;
}

.register-link a {
    color: #00f5d4;

    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}


/* ==========================================
   PRELOADER
========================================== */

.preloader {
    display: none !important;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 650px) {

    .unix-login {
        padding: 90px 15px 30px;
    }

    .login-content {
        width: 100%;

        padding:
            65px
            25px
            45px;
    }

    .login-logo {
        width: 130px;
        height: 130px;

        top: -75px;
    }

    .habbo-avatars {
        gap: 0;
    }

    .habbo-avatars img {
        width: 85px;

        flex-basis: 85px;
    }

}


@media (max-width: 400px) {

    .habbo-avatars img {
        width: 72px;

        flex-basis: 72px;
    }

    .login-content {
        padding-left: 18px;
        padding-right: 18px;
    }

}