/* --- General Styles --- */
body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Noto Sans JP";
}

/* --- Login Wrapper --- */
.login-wrapper {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    /* モバイルでの高さを確保 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* --- Login Header --- */
.login-header {
    width: 100%;
    height: 70px;
    background-color: #E17713;
    position: relative;
    padding: 20px 18px;
}

.login-logo {
    width: 70px;
}

/* --- Login Body --- */
.login-body {
    width: 100%;
    padding: 70px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.title-icon {
    margin-bottom: 20px;
}

.login-title {
    text-align: center;
    color: #E17713;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.01em;
    margin-bottom: 30px;
}

/* --- Form Styles --- */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* フォーム要素を中央寄せ */
}

.input-group {
    width: 100%;
    max-width: 310px;
    /* 入力グループの最大幅 */
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    /* ラベルと入力フィールドを縦に配置 */
}

.form-label {
    color: #24272A;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    /* 親要素 (.input-group) の幅いっぱいに */
    height: 55px;
    padding: 0 17px;
    /* 左右のパディング */
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.10);
    border: none;
    font-size: 16px;
    color: #24272A;
    box-sizing: border-box;
    /* paddingとborderをwidthの内側に含める */
}

.form-control:focus {
    background: #fff;
    outline: none;
}

/* Placeholder styles */
.form-control::placeholder {
    color: #727980;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

.form-control::-webkit-input-placeholder {
    color: #727980;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

.form-control:-ms-input-placeholder {
    color: #727980;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

.button-group {
    display: flex;
    justify-content: center;
    /* ボタンを中央寄せ */
    margin-top: 20px;
}

.login-btn {
    width: 180px;
    height: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 47px;
    background: #E17713;
    cursor: pointer;
    /* ボタンにカーソルスタイルを追加 */
    transition: background-color 0.2s;
}

.login-btn:hover,
.login-btn:focus {
    background: #d1650f;
}

/* --- Footer Styles --- */
.login-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.97rem;
    color: #888;
}

.login-link {
    color: #222;
    font-weight: 500;
    margin-left: 0.3em;
    text-decoration: underline;
    transition: color 0.2s;
}

.login-link:hover {
    color: #444;
}

/* --- Alert Styles --- */
/* Bootstrapのクラス名を再利用していますが、スタイルは独自定義です */
.alert {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Custom Header (if used elsewhere) --- */
/* login-wrapperのheaderとは別に定義されているようです */
.custom-header {
    width: 100%;
    height: 70px;
    background: #E17713;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

/* --- Responsive Styles --- */
@media (min-width: 768px) {
    .login-wrapper {
        max-width: 400px;
        margin: 0 auto;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        min-height: auto;
    }

    .login-body {
        max-width: 350px;
        padding: 40px 2rem 2rem;
        justify-content: flex-start;
    }
}