/* 959px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 959px) {
    #loginform_header{
        height:150px;
    }
    #rainyicon{
        width:100px;
        height:100px;
    }
    h1{
        font-size: 30pt;
    }
}
/* 480px以下に適用されるCSS（スマホ用） */
@media screen and (max-width: 480px) {
    #loginform_header{
        height:150px;
    }
    #rainyicon{
        width:100px;
        height:100px;
        margin:5px;
    }
    h1{
        font-size: 30pt;
    }
}

/*スマホ表示*/
@media screen and ((orientation: portrait) or (max-width:1200px)){
    h1{
        font-family: 'Comic Neue', 'Comic Sans MS', cursive;
        font-size: 48pt;
        color:#555;
        margin-left:30px;
    }
    .subtitle{
        font-size:16pt;
    }
    a{
        text-decoration:none;
        font-size: 16pt;
    }
    body{
        margin:0px;
        font-size: 30pt;
    }
    #loginform_header{
        background-image:url(../../assets/img/rainysketch_header.png);
        background-repeat: no-repeat;    /* 画像を繰り返さない */
        background-position: right center; /* 右寄せ（縦中央） */
        background-color: #ffffff;       /* 余白部分を白で塗りつぶし */
        background-size: auto 100%;      /* 高さを合わせ、横幅は自動 */
    }
    #rainyicon{
        width:150px; 
        height:150px;
        margin:20px;
    }
    .explanation{
        font-size: 20pt;
    }
    .loginform{
        width:100wh;
        margin: 0px;
        height: calc(100vh - 20px);
        background-color:#EEE;
        min-height: 850px;
    }
    .input_table{
        width:50%; 
        margin:0px auto;
        font-size:30px;
    }
    .input_row{
        height:100px;
    }
    .loginlabel{
        width:200px; 
        text-align: right;
    }
    #loginbtn
    {
        /*width:450px; */
        width:100%;
        height:70px; 
        /*font-size: 50pt; */
        border-radius: 10px; 
        background-color: #555; 
        color:white;
        cursor: pointer;
    }
    #loginbtn:hover{
        background-color: #EEE; 
        color:#555;
    }
    .loginbox{
        text-align: center;
    }
    .input_account{
        border-radius: 15px; 
        height:70px;
        /*padding:5px; */
        font-size:20pt;
        width:100%;
    }
    .input_account::placeholder{
        font-size:12pt;
    }
    .footer_spacer{
        height:calc(100vh - 710px); 
        min-height:140px; 
        margin:0px;
    }
    .footer{
        background-color:gray;
        font-size: 12pt;
        height:50px;
    }
    .copyright{
        /*position:absolute;*/
        /*top:calc(100vh - 100px);*/
        height:90px;
        width:calc(100% - 10px);
        background-color: #555;
        color:white;
        padding:5px;
        position:absolute;
        bottom:0px;
        margin-left: 0px;
        left:0px;
    }
}

/*PC表示*/
@media screen and (orientation: landscape) and (min-width: 1200px){
    body, html{
        padding:0px;
        margin:0px;
    }
    h1{
        font-family: 'Comic Neue', 'Comic Sans MS', cursive;
        font-size: 48pt;
        color:#555;
        margin-left:30px;
    }
    a{
        text-decoration:none;
    }
    #loginform_header{
        background-image:url(../../assets/img/rainysketch_header.png);
        background-repeat: no-repeat;    /* 画像を繰り返さない */
        background-position: right center; /* 右寄せ（縦中央） */
        background-color: #ffffff;       /* 余白部分を白で塗りつぶし */
        background-size: auto 100%;      /* 高さを合わせ、横幅は自動 */
    }
    form{
        width:400px; 
        margin:0px auto; 
        padding:0px;
    }
    #rainyicon{
        width:100px; 
        height:100px;
    }
    .loginform{
        width:600px;
        margin: 0px auto;
        height: 100vh;
        background-color:#EEE;
        min-height: 850px;
    }
    .input_table{
        width:400px; 
        margin:0px auto;
    }
    .input_row{
        height:40px;
    }
    .loginlabel{
        width:100px; text-align: right;
    }
    #loginbtn
    {
        width:200px; 
        height:60px; 
        font-size: 30px; 
        border-radius: 5px; 
        background-color: #555; 
        color:white;
        cursor: pointer;
    }
    #loginbtn:hover{
        background-color: #EEE; 
        color:#555;
    }
    .loginbox{
        text-align: center;
    }
    .input_account{
        border-radius: 15px; 
        height:50px; 
        padding:5px; 
        font-size:14pt;
        width:100%;
    }
    .footer_spacer{
        height:calc(100vh - 710px); 
        min-height:140px; 
        margin:0px;
    }
    .footer{
        background-color:gray;
        font-size: 20pt;
        height:50px;
    }
    .copyright{
        /*position:absolute;*/
        /*top:calc(100vh - 100px);*/
        height:90px;
        width:580px;
        background-color: #555;
        color:white;
        padding:5px;
    }
}


body {
    background-color: #fff;
    overflow-x: hidden;
}
.login-window{
    min-height: 100vh;
    width: 100vw;
}
.login-container {
    display: flex;
    height:calc(100vh - 50px);
    width: 100%;
    margin: 0;
}
.login-image {
    flex: 1;
    background: url('/assets/img/login_image.jpg')/*url('https://source.unsplash.com/800x800/?technology')*/ center/cover no-repeat;
    background-size:700px;
}
.login-form {
    flex: 1;
    background-color: #e0e0e0;
    padding: 1rem;
}
.login-form button {
width: 350px; /* ボタンの横幅を小さく */
align-self: start; /* 左寄せ */
border-radius: 20px;
}

.login-divider {
border-top: 1px solid #aaa;
margin: 2rem 0 1rem;
width: 100%;
}

@media (max-width: 768px) {
    .login-image {
    display: none;
    }
}
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.account-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}
.password-section {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    padding: 2rem;
    transition: right 0.5s ease-in-out;
}
.password-section.active {
    right: 0;
}