/* static/css/login.css */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-wrapper {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    margin: 2rem auto;
    position: relative;
}

.logo-box {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    background-color: #1e3a8a;
    color: white;
}

.logo-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.page-title {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sign-box {
    padding: 2rem;
    background-color: #f9fafa;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 40px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group-addon:hover {
    background-color: #dee2e6;
}

.captcha-img {
    width: 100px;
    height: 45px;
    margin-left: 20px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.captcha-img:hover {
    transform: scale(1.05);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.footer-text {
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .login-wrapper {
        margin: 1rem;
        max-width: 90%;
    }

    .logo-box {
        padding: 1.5rem 1rem 0.8rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .sign-box {
        padding: 1.5rem;
    }
}
