/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    border: 1px solid #e5e5e5;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: #333;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #333;
}

.form-input:hover {
    border-color: #bbb;
}

.error-message {
    background: #fafafa;
    color: #d32f2f;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    border: 1px solid #ffcdd2;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background: #555;
}

.login-button:active {
    background: #222;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.lock-icon {
    width: 14px;
    height: 14px;
    color: #999;
}

/* レスポンシブ */
@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1.5rem;
        border: none;
    }

    .login-title {
        font-size: 1.125rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}
