@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap');
/*japanese font*/
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&family=Noto+Sans+Mono:wght@100..900&display=swap');

body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: var(--LightGray);
}

a {
    text-decoration: none;
}

p {
    margin: 0;
    font-family: var(--NormalFamilyFont);
}

h1 {
    display: flex;
    color: var(--Red);
    font-size: var(--TitleFont);
    font-family: var(--NormalFamilyFont);
    margin: 0px;
}

h2 {
    color: var(--Red);
    font-size: var(--MediumFont);
    font-family: var(--NormalFamilyFont);
}

label {
    color: var(--DarkGray);
    font-size: var(--NormalFont);
    font-family: var(--NormalFamilyFont);
    font-weight: bold;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.wrapper {
    display: grid;
    grid-template:
        ". . . . . . . ." 2fr ". title title . content content content ." 8fr
        ". . . . . . . ." 2fr
        /3fr 4fr 4fr 2fr 4fr 4fr 4fr 3fr;
    min-height: 100%;
    row-gap: 1.6em;
}

@media(width<1000px) {
    .wrapper {
        display: grid;
        grid-template:
            ". title title ." auto ". content content ." auto
            /2fr 4fr 4fr 2fr;
        min-height: 0%;
    }
}

@media (max-width: 550px) {
    .reset-password-tab {
        padding: 1em 1.5em!important;
    }
}

.title {
    grid-area: title;
    display: flex;
    color: var(--Red);
    font-size: var(--TitleFont);
    justify-content: center;
    align-items: center;
}

.title * {
    align-self: center;
    justify-self: center;
    text-align: center;
}

#signinTitle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    grid-area: content;
    background-color: var(--White);
    display: flex;
    flex-direction: column;
    padding: 1.5em;
    padding-bottom: 2.5em;
    padding-top: 2.5em;
    gap: 1.5em;
    border-radius: 14px;

}

.textareas-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

input {
    max-width: 356px;
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--DarkGray);
    border-radius: 14px;
    padding: 0;

    font-size: var(--NormalFont);
    color: var(--PureLightGray);
}

.reset-password-container * {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.reset-password-container>label {
    margin-top: 0;
    margin-bottom: 0;
}

#sendResetCode {
    margin-bottom: 1em;
}

.div-buttom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-button {
    max-width: 360px;
    width: 100%;
    min-height: 50px;
    padding: 0;
    margin-top: 0.6em;

    border-radius: 14px;
    background-color: var(--Red);
    border: 2px solid var(--DarkGray);
    color: var(--PureWhite);
    font-size: var(--NormalFont);
    font-weight: bold;

}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.reset-password-tab {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    padding-left: 3em;
    padding-right: 3em;
    padding-top: 2em;
    padding-bottom: 2em;
    background-color: var(--White);
    border: 2px solid var(--DarkGray);
    border-radius: 14px;
    box-shadow: 0 7px 10px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    color: var(--DarkGray);
    font-size: var(--NormalFont);
    font-family: var(--NormalFamilyFont);
}

.reset-password-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reset-password-container>input {
    max-width: none;
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--DarkGray);
    border-radius: 14px;
    padding: 0;
    font-size: var(--NormalFont);
    font-family: var(--NormalFamilyFont);
}

.reset-password-container>button {
    flex: 1;
    max-width: none;
    width: 100%;
    min-height: 40px;
    padding: 0;

    border-radius: 14px;
    background-color: var(--Red);
    border: 2px solid var(--DarkGray);
    color: var(--PureWhite);
    font-size: var(--NormalFont);
    font-family: var(--NormalFamilyFont);
}

.signup-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2em;
}

.signup-link a {
    color: var(--DarkGray);
    font-size: var(--SmallFont);
    font-family: var(--NormalFamilyFont);
}

.signup-link a:hover {
    color: var(--Red);
    transition: 0.2s;
}

:root {
    /*color*/
    --Red: rgb(196, 64, 64);
    --Gray: rgb(161, 161, 161);
    --DarkGray: rgb(66, 66, 66);
    --PureLightGray: rgb(45, 45, 45);
    --DarkGray2: rgb(31, 31, 31);
    --LightGray: rgb(247, 247, 247);
    --White: rgb(255, 255, 255);
    --PureWhite: rgb(255, 255, 255);

    /*font*/
    --TitleFont: clamp(0.5rem + 2vw, 1rem + 5vw, 2rem + 6vw);
    --MediumFont: clamp(0.35rem + 2vw, 0.7rem + 2.5vw, 1rem + 1vw);
    --NormalFont: clamp(0.35rem, 0.6rem + 1vw, 1.25rem);
    --SmallFont: clamp(0.25rem, 0.4rem + 0.5vw, 1rem);

    --NormalFamilyFont: "Noto Sans Mono", monospace;
}

.dark-theme {
    --Red: rgb(196, 64, 64);
    --Gray: rgb(222, 222, 222);
    --DarkGray: rgb(206, 206, 206);
    --LightGray: rgb(45, 45, 45);
    --PureLightGray: rgb(45, 45, 45);
    --White: rgb(29, 29, 29);
    --PureWhite: rgb(255, 255, 255);
    transition: all 0.3s ease;
}