/* ログイン画面全体のレイアウト */
.contents_wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 20px;
}

.contents_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ログインボックスのスタイル */
#clinic_login_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

#clinic_login_box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

#clinic_login_box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* フォーム要素のスタイル */
#clinic_login_box input[type="text"],
#clinic_login_box input[type="password"],
#clinic_login_box input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#clinic_login_box input[type="text"]:focus,
#clinic_login_box input[type="password"]:focus,
#clinic_login_box input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* エラーメッセージ */
.error_message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
}

/* ボタンスタイル */
.clinic_next_btn_wrap {
    margin: 20px 0;
}

.clinic_next_btn {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.clinic_next_btn:hover {
    background: #0056b3;
}

/* パスワードリンク */
.password_wrap {
    text-align: center;
    margin: 15px 0;
}

.password_wrap a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.password_wrap a:hover {
    text-decoration: underline;
}

/* LINEログインセクション */
.p1 {
    text-align: center;
    margin: 25px 0 15px;
    font-size: 16px;
    color: #333;
    position: relative;
}

.p1::before,
.p1::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: #ddd;
}

.p1::before {
    left: 0;
}

.p1::after {
    right: 0;
}

/* LINEログインボタン */
.login_btn {
    background: #00b900;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
}

.login_btn:hover {
    background: #009900;
}

/* コピーライト */
.check_copy {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
}

/* ヘッダーロゴのスタイル */
.header__logo {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header__logo a {
    display: block;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__logo::after {
    content: "クリニックログイン";
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    #clinic_login_box {
        padding: 20px;
    }

    #clinic_login_box h2 {
        font-size: 20px;
    }

    .contents_wrap {
        padding: 10px;
    }

    /* スマートフォン向けの追加スタイル */
    .header__logo {
        gap: 12px;
    }

    .header__logo::after {
        font-size: 13px;
    }

    #clinic_login_box input[type="text"],
    #clinic_login_box input[type="password"],
    #clinic_login_box input[type="email"] {
        padding: 10px;
        font-size: 14px;
    }

    .clinic_next_btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .password_wrap {
        margin: 12px 0;
    }

    .password_wrap a {
        font-size: 13px;
    }

    .p1 {
        font-size: 14px;
        margin: 20px 0 12px;
    }

    .p1::before,
    .p1::after {
        width: 20%;
    }

    .login_btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .error_message {
        font-size: 13px;
        padding: 8px;
    }
}

/* タブレット向けのスタイル */
@media (min-width: 481px) and (max-width: 768px) {
    #clinic_login_box {
        max-width: 440px;
        padding: 30px;
    }

    .contents_wrap {
        padding: 15px;
    }

    .header__logo img {
        height: 35px;
    }
}

/* アニメーション効果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#clinic_login_box {
    animation: fadeIn 0.5s ease-out;
}

/* フォーカス時の視覚的フィードバック強化 */
#clinic_login_box input[type="text"]:focus,
#clinic_login_box input[type="password"]:focus,
#clinic_login_box input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
    transition: all 0.3s ease;
}

/* ボタンのアクティブ状態 */
.clinic_next_btn:active,
.login_btn:active {
    transform: translateY(1px);
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .contents_wrap {
        background-color: #1a1a1a;
    }

    #clinic_login_box {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    #clinic_login_box h2,
    .p1 {
        color: #ffffff;
    }

    #clinic_login_box input[type="text"],
    #clinic_login_box input[type="password"],
    #clinic_login_box input[type="email"] {
        background-color: #3d3d3d;
        border-color: #4d4d4d;
        color: #ffffff;
    }

    .error_message {
        background-color: rgba(220,53,69,0.1);
    }

    .check_copy {
        background-color: #1a1a1a;
        color: #888;
    }
}