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

body {
    font-family: "Lato", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    min-height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
}

.login-banner {
    flex: 1;
    background: linear-gradient(45deg, #002B5B, #004280);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #fff;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-container .logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.login-banner h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.login-banner p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 400px;
}

.login-form {
    width: 500px;
    padding: 60px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #002B5B;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 15px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input {
    width: 100%;
    height: 54px;
    background: #f8f9fa;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #002B5B;
    background: #fff;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 30px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0;
    left: 15px;
    font-size: 12px;
    padding: 0 5px;
    background: #fff;
    color: #002B5B;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: #002B5B;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #002B5B;
}

.remember-me label {
    color: #666;
    font-size: 14px;
}

.forgot-link {
    color: #002B5B;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(45deg, #002B5B, #004280);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 43, 91, 0.25);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 43, 91, 0.2);
}

.login-btn.loading {
    background: linear-gradient(45deg, #002B5B, #004280);
    pointer-events: none;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.register-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.register-link span {
    color: #666;
    font-size: 14px;
}

.register-link a {
    color: #002B5B;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    transition: all 0.3s;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-logo {
    display: none;
}

@media (max-width: 900px) {
    body {
        background: #002B5B;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }

    .login-banner {
        display: none;
    }

    .login-container {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: #002B5B;
        box-shadow: none;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-logo {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 25px 0;
        z-index: 1;
    }

    .mobile-logo img {
        height: 40px;
        width: auto;
    }

    .login-form {
        background: #fff;
        border-radius: 30px;
        padding: 40px 25px;
        position: relative;
        margin-top: 90px; /* logo高度 + padding */
    }

    .form-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .mobile-logo {
        padding: 20px 0;
    }

    .mobile-logo img {
        height: 35px;
    }

    .login-form {
        width: 360px;
        padding: 30px 20px;
        margin: auto;
    }
}