@charset "UTF-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.text-center {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

h1 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 20px;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #17a2b8;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #138496;
}

.text-danger {
    color: #dc3545;
    font-size: 14px;
    margin: 5px 0;
}

/* SP表示 */
@media (max-width: 480px) {
    .text-center {
        width: 95%;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="submit"] {
        padding: 10px;
        font-size: 1.2rem;
    }
}