@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@150;200&display=swap');

@keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  /* Apply the animation to all elements */
  * {
    animation: fade-in 0.5s ease-in-out;
  }
  
* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: none;
}

@media only screen and (max-width: 600px) {


    body {
        display: block;
        -webkit-user-select: none;
        transform-origin: 0 0;
        user-select: none;
        overflow-y: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        /* background: #dde5f4; */
        background: linear-gradient(to bottom, #dde5f4, #c5d3ec);
        height: 100vh;
        padding-top: 15px;
        font-family: 'Montserrat', sans-serif;
    }

    .screen-1 {
        background: #f1f7fe;
        /* background: linear-gradient(to bottom, #e6fde0, #ec652a); */
        padding: 1.5em;
        display: flex;
        flex-direction: column;
        border-radius: 30px;
        box-shadow: 0 0 3em #eff1ff;
        gap: 3em;
    }

    .screen-1 .logo {
        transform-origin: 0 0;
        margin-top: -2em;
    }

    .screen-1 .username {
        background: white;
        box-shadow: 0 0 3em #e6e9f9;
        padding: 0.9em;
        display: flex;
        flex-direction: column;
        gap: 0.3em;
        border-radius: 20px;
        color: #4d4d4d;
        margin-top: -6em;
        margin-bottom: 1em;
    }

    .screen-1 .username input {
        outline: none;
        border: none;
        width: 85%;
    }

    .screen-1 .username input::placeholder {
        color: #4d4d4d;
        font-size: 0.8em;
        font-style: italic;
    }

    .screen-1 .username ion-icon {
        color: #4d4d4d;
        margin-bottom: -0.2em;
    }

    .screen-1 .password {
        background: white;
        box-shadow: 0 0 3em #e6e9f9;
        padding: 0.9em;
        display: flex;
        flex-direction: column;
        gap: 0.3em;
        border-radius: 20px;
        color: #4d4d4d;
    }

    .screen-1 .password input {
        outline: none;
        border: none;
        width: 80%;
    }

    .screen-1 .password input::placeholder {
        color: #4d4d4d;
        font-size: 0.8em;
        font-style: italic;
    }

    .screen-1 .password ion-icon {
        color: #4d4d4d;
    }

    .screen-1 .password .show-hide {
        margin-right: auto;
    }

    .screen-1 .login {
        display: flex;
        justify-content: center;
        padding: 1em;
        background: #ec652a;
        color: white;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        margin-top: 1em;
    }

    .screen-1 .login:hover {
        background: #ec652add;
    }

    .screen-1 .login:active {
        background: #ec652add;
    }

    .screen-1 .footer {
        display: flex;
        font-size: 0.8em;
        color: #5e5e5e;
        gap: 8em;
        padding-bottom: 1em;
        padding-left: 2em;
    }

    .screen-1 .footer span {
        cursor: pointer;
    }

    .logo {
        display: block;
        margin: auto;
        border-radius: 25%;
        max-width: 200px;
        margin-bottom: 15px;
    }

    .titulo {
        text-align: center;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
    }

    #loading {
        border: 16px solid #f3f3f3;
        border-top: 16px solid #55bc0a;
        border-radius: 50%;
        width: 70px;
        height: 70px;
        animation: spin 0.5s linear infinite;
        margin: 0 auto;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
}


@media only screen and (min-width: 601px) {

    body {
        display: block;
        -webkit-user-select: none;
        transform-origin: 0 0;
        user-select: none;
        overflow-y: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        /* background: linear-gradient(to bottom, #e6fde0, #ec652a); */
        height: 100vh;
        padding-top: 15px;
        font-family: 'Montserrat', sans-serif;
    }

    .screen-1 {
        /* background: #f1f7fe; */
        padding: 1.5em;
        display: flex;
        flex-direction: column;
        border-radius: 30px;
        box-shadow: 0 0 3em #e6e9f9;
        gap: 3em;
    }

    .screen-1 .logo {
        transform-origin: 0 0;
        margin-top: -2em;
    }

    .screen-1 .username {
        background: white;
        box-shadow: 0 0 3em #e6e9f9;
        padding: 0.9em;
        display: flex;
        flex-direction: column;
        gap: 0.3em;
        border-radius: 20px;
        color: #4d4d4d;
        margin-top: -4em;
        margin-bottom: 1em;
    }

    .screen-1 .username input {
        outline: none;
        border: none;
        width: 85%;
    }

    .screen-1 .username input::placeholder {
        color: #4d4d4d;
        font-size: 0.8em;
        font-style: italic;
    }

    .screen-1 .username ion-icon {
        color: #4d4d4d;
        margin-bottom: -0.2em;
    }

    .screen-1 .password {
        background: white;
        box-shadow: 0 0 3em #e6e9f9;
        padding: 0.9em;
        display: flex;
        flex-direction: column;
        gap: 0.3em;
        border-radius: 20px;
        color: #4d4d4d;
    }

    .screen-1 .password input {
        outline: none;
        border: none;
        width: 80%;
    }

    .screen-1 .password input::placeholder {
        color: #4d4d4d;
        font-size: 0.8em;
        font-style: italic;
    }

    .screen-1 .password ion-icon {
        color: #4d4d4d;
    }

    .screen-1 .password .show-hide {
        margin-right: auto;
    }

    .screen-1 .footer {
        display: flex;
        font-size: 0.8em;
        color: #5e5e5e;
        gap: 8em;
        padding-bottom: 1em;
    }

    .screen-1 .footer span {
        cursor: pointer;
    }

    .logo {
        display: block;
        margin: auto;
        border-radius: 25%;
        max-width: 200px;
        margin-bottom: 5px;
    }

    .titulo {
        text-align: center;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
    }

    .screen-1 .login {
        display: flex;
        justify-content: center;
        padding: 1em;
        background: #1a1f7e;
        color: white;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        margin-top: 1em;
    }

    .screen-1 .login:hover {
        background: #1a1f7edd;
    }

    .screen-1 .login:active {
        background: #1a1f7edd;
    }

    #loading {
        border: 16px solid #f3f3f3;
        border-top: 16px solid #55bc0a;
        border-radius: 50%;
        width: 70px;
        height: 70px;
        animation: spin 0.5s linear infinite;
        margin: 0 auto;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
}