﻿@import "https://unpkg.com/open-props";

button,
input {
    font: inherit;
}

.page__main {
    grid-area: main;
}

.main {
    display: grid;
    align-items: center;
}

.login-form__title {
    margin-bottom: var(--size-6);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-5);
    text-align: center;
}

.login-form__label {
    margin-bottom: var(--size-4);
    display: grid;
}

.login-form__input {
    /* color: inherit; */
    width: 100%;
    padding: 0.8em;
    border: 0;
    border-radius: var(--radius-2);
}

.login-form__footer {
    margin-top: var(--size-5);
    display: flex;
    gap: var(--size-2);
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.login-form__link {
    color: inherit;
    text-decoration: 0;
}

    .login-form__link:hover {
        text-decoration: underline;
    }

.primary-btn {
    color: white;
    background-color: #29472d;
    padding: 0.9em 1.4em;
    border: 0;
    border-radius: var(--radius-2);
    cursor: pointer;
}

.secondary-btn {
    color: #29472d;
    background-color: #fcfcff;
    padding: 0.8em 1.3em;
    border: 1;
    border-color: #29472d;
    justify-content: space-evenly;
    border-radius: var(--radius-2);
    cursor: pointer;
}

.sr-only {
    position: absolute;
    margin: -1px;
    width: 1px;
    height: 1px;
    padding: 0;
    border-width: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.disabled-button {
    cursor: not-allowed;
    padding: 0.9em 1.4em;
    border: 0;
    border-radius: var(--radius-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
}

.disabled-input {
    pointer-events: none;
    cursor: not-allowed;
    background-color: gainsboro;
    width: 100%;
    padding: 0.8em;
    border: 0;
    border-radius: var(--radius-2);
}

.loader {
    width: 27px;
    height: 27px;
    border: 5px solid #fff;
    border-bottom-color: lightblue;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.emailId,
.password {
    display: flex;
    align-items: start;
    justify-content: start;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

    .emailId input,
    .password input {
        padding: 7px 0;
        width: 30rem;
        border: none;
        border-bottom: 1px solid #29472d;
        background-color: #fff;
        font-size: 1rem;
        display:block;
    }

    .emailId .error-msg,.password .error-msg{
        display:block;
    }

        .emailId input:focus,
        .emailId input:active,
        .password input:focus,
        .password input:active {
            outline: none;
        }

    .emailId label,
    .password label {
        font-size: 1.2rem;
        color: #29472d;
    }

.login-container {
    display: flex;
    height: 100vh;
    justify-content: space-between;
    background-color: #fff;
    width: 100vw;
}

.login-form h1 {
    font-size: 3rem;
}

.login-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100vh;
    width: 100%;
    background-color: #fff;
}

mat-form-field {
    width: 25rem;
}

.main__login-form {
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    flex-direction: column;
    gap: 3em;
}

.remember-me{
    display:flex;
    flex-direction:column;
    gap:2px;
}

@media (max-width: 968px) {
    .login-image {
        display: none;
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .login-image {
        display: none;
        visibility: hidden;
    }

    .main__login-form {
        padding: 0 10px;
    }

    .emailId input,
    .password input {
        width: 25rem;
    }
}

@media screen and (min-width: 36em) {
    .login-form__footer {
        flex-direction: row;
    }
}

@media (max-width: 568px) {
    .emailId input,
    .password input {
        width: 20rem;
    }
}

@media (max-width: 368px) {
    .emailId input,
    .password input {
        width: 15rem;
    }

    .login-form h1 {
        font-size: 2rem;
    }
}
