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: 400px; /* 360pxから320pxに縮小 */
    width: 90%;
    background-color: #ffffff;
    padding: 30px; /* 40pxから30pxに縮小 */
    border-radius: 10px; /* 12pxから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; /* 24pxから22pxに縮小 */
}

.form-group {
    margin-bottom: 16px; /* 20pxから16pxに縮小 */
}

label {
    display: block;
    margin-bottom: 4px; /* 6pxから4pxに縮小 */
    color: #555555;
    font-weight: 500;
    font-size: 13px; /* 14pxから13pxに縮小 */
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px; /* 10pxから8pxに縮小 */
    border: 1px solid #e0e0e0;
    border-radius: 5px; /* 6pxから5pxに縮小 */
    font-size: 13px; /* 14pxから13pxに縮小 */
    transition: all 0.3s ease;
    border-bottom: 2px solid #e0e0e0;
    box-sizing: border-box; /* これを追加 */
}

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

.btn-register {
    display: block;
    width: 100%;
    padding: 10px; /* 12pxから10pxに縮小 */
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px; /* 16pxから15pxに縮小 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.login-link {
    display: flex;
    text-align: left;
    align-items: center; /* 垂直中央配置 */
}

.login-link a {
    color: #6c757d; /* より薄い色に変更 */
    text-decoration: none;
    font-size: 0.6em;
    transition: color 0.3s;
}

.login-link a:hover {
    color: #007bff; /* ホバー時は元の青色に */
}

.btn-otp {
    padding: 0 20px; /* 20pxから16pxに縮小 */
    background-color: #808080;
    color: #ffffff;
    border: none;
    border-radius: 5px; /* 6pxから5pxに縮小 */
    font-size: 13px; /* 14pxから13pxに縮小 */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    height: 36px; /* 36pxから32pxに縮小 */
    line-height: 32px; /* 36pxから32pxに縮小 */
}

.btn-otp:hover {
    background-color: #696969;
}

.action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* 要素間に10pxの隙間を追加 */
}

.btn-otp {
    width: auto;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .action-row {
        flex-direction: column-reverse; /* column から column-reverse に変更 */
        align-items: stretch;
    }

    .btn-otp {
        width: 100%;
        margin-bottom: 12px; /* margin-bottom から margin-top に変更 */
    }

    .login-link {
        justify-content: flex-end;
        height: auto;
        margin-bottom: 0; /* 追加：下部の余白を削除 */
    }

    .login-link a {
        font-size: 0.7rem;
    }
}