body {
    align-items: center;
    display: flex;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 20px;
}

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #FEE;
    border-left: 4px solid #D0010F;
    color: #D0010F;
}

.alert-success {
    background-color: #F0F9FF;
    border-left: 4px solid #0356A6;
    color: #0356A6;
}

.btn-login {
    background: linear-gradient(135deg,#0356a6 0%,#1a66bd 100%);
    border-radius: 8px;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    padding: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg,#024a92 0%,#155ba8 100%);
    box-shadow: 0 8px 25px rgba(3,86,166,0.3);
    color: white;
    transform: translateY(-2px);
}

.footer {
    background: #194A7A;
    bottom: 0px;
    color: #FFF;
    font-size: 13px;
    font-weight: 500;
    padding: 18px 0px;
    position: fixed;
    text-align: center;
    width: 100%;
}

.footer a {
    color: #FFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.forgot-password {
    margin: 24px 0px;
    text-align: center;
}

.forgot-password a {
    color: #0356A6;
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #E1E5E9;
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control.is-invalid {
    border-color: #D0010F;
    box-shadow: 0 0 0 3px rgba(208,1,15,0.1);
}

.form-control:focus {
    border-color: #0356A6;
    box-shadow: 0 0 0 3px rgba(3,86,166,0.1);
}

.form-label {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.invalid-feedback {
    color: #D0010F;
    display: block;
    font-size: 0.85rem;
    margin-top: -15px;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 450px;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.login-form {
    padding: 40px 30px;
}

.login-header {
    color: white;
    padding: 50px 30px 0px 30px;
    text-align: center;
}

.logo-section {
    margin-bottom: 20px;
}

.logo-section img {
    height: auto;
    width: 50%;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 5px 0 0;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .login-container {
        margin: 10px;
        max-width: none;
    }

    .login-form {
        padding: 30px 20px;
    }

    .login-header {
        padding: 30px 20px 20px;
    }

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