* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

form p {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1d1d1f;
}

form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:focus {
    outline: none;
    border-color: #06c;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #06c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

p {
    color: #86868b;
}

a {
    color: #06c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* エラーメッセージのスタイル */
.errorlist {
    list-style: none;
    color: #ff3b30;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 480px) {
    form {
        padding: 1.5rem;
        margin: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* ヘルプテキストのスタイル */
.helptext {
    display: block;
    font-size: 0.85rem;
    color: #86868b;
    margin-top: 0.25rem;
}