@charset "UTF-8";

.logo-main {
    display: block;
    margin: 0 auto;       /* 中央寄せ */
    margin-bottom: 35px;
    height: 1.1em;          /* h1相当の高さに調整 */
    width: auto;          /* アスペクト比を維持 */
}
/* 背景を薄いグレーに */
body {
    background-color: #f0f0f0;
    margin: 0;
    display: flex;
    justify-content: center;     /* 横中央 */
    align-items: center;         /* 縦中央 */
    min-height: 100vh;           /* 画面全体を基準に */
}

/* 白いボックスを中央に */
.login-box1 {
    background-color: #fff;
    width: 400px;
    padding: 34px 48px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* 白いボックスを中央に */
.login-box2 {
    background-color: #fff;
    width: 520px;
    padding: 34px 48px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.login-box h1 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.form-field {
    margin-bottom: 16px;
    width: 100%;        /* 入力欄と同じ幅 */
    margin-left: auto;   /* 中央寄せ */
    margin-right: auto;  /* 中央寄せ */
    text-align: left;    /* 左端揃え */
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
}

/* 入力欄を中央寄せ */
input[type="text"],
input[type="password"] {
    display: block;
    margin: 0 auto;
    width: 100%;         /* ←ここを統一 */
    background-color: #fff;
    border: 1px solid #912D1E;
    border-radius: 1mm;
    padding: 8px 10px;
    box-shadow: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-sizing: border-box;
}


/* パスワード表示切替ボタンを右端に重ねる */
.password-input-container {
    position: relative;
    width: 300px;         /* ←テキストボックスと同じ幅 */
    margin: 0 auto;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.eye-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* チェックボックス行も入力欄と同じ幅で中央寄せ */
.checkbox-row {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    text-align: left;   /* 左端揃え */
}

input[type="checkbox"] {
    vertical-align: middle;
    margin-top: -2px;
}

button[type="submit"] {
    display: block;
    margin: 30px auto 0;
    padding: 8px 16px;
    width: 100%;
    font-size: 1.0rem;
    font-weight: 700;
    background-color: #912D1E;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #E75A4F;
    box-shadow: 4px 4px 6px rgba(0,0,0,0.3);
}
