/**
 * login.css
 * ログイン画面用スタイル
 */

/* =========================================================
   基本設定
========================================================= */

/* 余白・サイズ計算の初期化 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 画面全体 */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #3c3c3c;
    font-family: "Noto Sans Japanese", "Helvetica Neue", Meiryo, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    overflow-y: hidden;
}

/* フォーム部品の初期化 */
input:not([type="radio"]),
button,
select {
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    font: inherit;
    outline: none;
}

/* クリック可能要素 */
a,
button,
label,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
    transition: ease 0.1s;
}

/* リンク表示 */
a,
a:link,
a:visited,
a:hover {
    color: inherit;
    text-decoration: none;
}

/* 画像表示 */
img {
    background-color: transparent;
    vertical-align: top;
}

/* 非表示制御（Bootstrap d-none と併用） */
.d-none {
    display: none !important;
}

/* =========================================================
   ログイン画面レイアウト
========================================================= */

/* 画面ラッパー */
#Wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ログイン画面背景 */
.lay-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background-color: rgba(192, 192, 192, 0.2);
    background-size: cover;
}

/* ログインカード */
.lay-login__sub {
    width: 350px;
    height: 500px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 20px;
}

/* ロゴ画像 */
.lay-login__sub img {
    width: 200px;
    height: auto;
    margin: 60px 30% 0 30%;
}

/* 中央寄せ */
.center {
    display: grid;
    place-items: center;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   ログインフォーム
========================================================= */

/* フォーム全体 */
.login-form {
    width: 85%;
    margin: 0 20px;
}

/* エラーメッセージ */
.login-form p {
    width: 100%;
    margin: 10px -3px;
    color: #ffffff;
    background: #e83e8c;
    font-size: 12px;
    text-align: center;
}

/* 改行付きエラーメッセージ表示 */
#error {
    white-space: pre-line;
}

/* 入力ラベル */
.login-form > form > label {
    display: block;
    padding-top: 10px;
}

/* 入力欄 */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 30px;
    padding-left: 15px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

/* 入力欄フォーカス時 */
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border: 1px solid rgb(120, 120, 120);
}

/* ログイン／確認ボタン */
.login-form button {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 30px;
    color: #ffffff;
    background-color: green;
    border-radius: 10px;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}

/* 無効化ボタン表示 */
.login-form button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* OTP再送信エリア */
.login-form .resend-frame {
    padding-top: 10px;
    text-align: right;
}

/* コピーライト */
.small-text {
    font-size: 10px;
}

/* =========================================================
   ローディングスピナー
========================================================= */

/* 全画面オーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.55);
}

/* ローディングアイコン */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #d6d6d6;
    border-top: 5px solid #399cb4;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

/* ローディング回転アニメーション */
@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}