/* 登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 600px;
}

.login-box {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-header h1 {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 48px;
    color: #1f2937;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1.6;
}

.login-header h1 .logo-icon {
    height: 72px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

.login-header h1 .pet-text {
    color: #2d5a27;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
}

.login-form {
    margin-top: 0;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.form-group label i {
    margin-right: 6px;
    color: #667eea;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:-webkit-autofill,
.form-group input[type="password"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #374151;
    background-color: #fff !important;
}

.form-group input[type="text"]:-webkit-autofill:focus,
.form-group input[type="password"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #374151;
    background-color: #fff !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 8px;
    background: #2d5a27;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.4);
    background: #1f4a1f;
}

.btn-login:active {
    transform: translateY(0);
}

/* 备案信息样式 */
.beian-info {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.beian-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.beian-icon {
    height: 14px;
    width: auto;
    vertical-align: middle;
}

.beian-item a {
    white-space: nowrap;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-item a:hover {
    color: #374151;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-header h1 .logo-icon {
        height: 56px;
    }

    .beian-info {
        margin-top: 20px;
        gap: 10px;
    }

    .beian-item {
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .beian-icon {
        height: 12px;
    }
}

