body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 320px;
    width: 90%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
}

h1 {
    text-align: center;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 22px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 4px;
    color: #555555;
    font-weight: 500;
    font-size: 13px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 2px solid #e0e0e0;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-bottom: 2px solid #007bff;
    box-shadow: 0 1px 0 0 #007bff;
    outline: none;
}

.btn-login {
    width: 100%; /* 変更なし：幅いっぱいに設定 */
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    box-sizing: border-box; /* 追加：パディングを幅に含める */
}

.btn-login:hover {
    background-color: #0056b3;
}

.action-row {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    width: 100%; /* 追加：親要素の幅いっぱいに広げる */
}

.links-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.register-link,
.forgot-password-link {
    margin-left: 15px;
}

.register-link a,
.forgot-password-link a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 10px;
    transition: color 0.3s;
    white-space: nowrap;
}

.register-link a:hover,
.forgot-password-link a:hover {
    color: #007bff;
}

@media (max-width: 480px) {
    .links-row {
        flex-direction: column;
        align-items: flex-end;
    }

    .register-link,
    .forgot-password-link {
        margin-left: 0;
        margin-top: 5px;
    }

    .register-link a,
    .forgot-password-link a {
        font-size: 12px;
    }

    .btn-login {
        width: 100%; /* 追加：小さい画面でも幅いっぱいに */
    }
}
